Customizing SMF > SMF Coding Discussion
Tip: Handling Multiple SSI Logout and Login Sessions.
(1/1)
MyRealityApps:
If you use SSI.php to redirect users after logging them in and found that when they login via the forum it redirects them to the SSI is redirecting them to, I've found a fix:
Just insert the following code in your theme's "index.template.php" file on the line following the "<?php":
--- Code: ---$_SESSION['login_url']='http://yourdomain.com/path/to/forum';
$_SESSION['logout_url']='http://yourdomain.com/path/to/forum';
--- End code ---
This should redirect your users to your forum after logging in from the forum, and does not require using the "require_once(SSI.php)" statement, as you are modifying a file inside the forum itself.
Hope this is useful,
Shane.
Navigation
[0] Message Index
Go to full version