Auto logoff with redirect
I’ve got the membership plugin V1.10 active and am running CMSB 3.06.
After a member updates their profile I want to automatically log them off and redirect them to a logoff page.
Based on a snippet of code I found in admin_functions.php, I included the following code in my member_profile page:
// on success
$errorsAndAlerts = "Thanks, we've updated your profile!<br/>\n";
In the membership plugin, my $GLOBALS['WEBSITE_LOGIN_POST_LOGOFF_URL'] = 'http://my_site.com/logout_index.php';
I seem to be logged off, but am returned to the normal login page instead of logout_index.php
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php