Auto logoff with redirect

4 posts by 2 authors in: Forums > CMS Builder
Last Post: March 30, 2017   (RSS)

By Dave - March 30, 2017

Hi Jerry, 

user_logoff() is an internal CMSB function and takes an optional redirect url as an argument.  Try this: 

$errorsAndAlerts = "Thanks, we've updated your profile!<br/>\n";
user_logoff("http://www.my_site.com/logout_index.php");

Let me know if that works for you.

Dave Edis - Senior Developer
interactivetools.com

Thanks Dave,

I'll give it a try...

Happy Spring!

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Worked perfectly.

Thanks again.

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php