Logout Ability
3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 19, 2013 (RSS)
I installed "logout" functionality on my website www.edmundsassoc.com/support (when you click the big picture of the building, you get logged out). The logout works fine, but it redirects the visitor to the wrong website. how can i change what site the user gets redirected to when they logout?
Hi Jeff,
You can change the page you get taken to after log in in the Website Membership plugin. If you open websiteMembership.php, which you will find in the cmsAdmin/plugins/websiteMembership/ directory around line 21 (depending on which version of the website membership plugin you are using), you should see the following code:
// After logoff, user gets redirected to the last page they were on (if defined), the url below, or to /
$GLOBALS['WEBSITE_LOGIN_POST_LOGOFF_URL'] = '/';
You just need to change this to whatever page you want the user to be taken to, for example:
// After logoff, user gets redirected to the last page they were on (if defined), the url below, or to /
$GLOBALS['WEBSITE_LOGIN_POST_LOGOFF_URL'] = '/you-are-logged-out.php';
Let me know if you have any questions.
Thanks!
Greg
PHP Programmer - interactivetools.com