Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: Onin on November 21, 2007, 10:48:41 AM

Title: Logout doesn't work
Post by: Onin on November 21, 2007, 10:48:41 AM
I'm using ssi_login on my mainsite but I can't  logout from it because then I get redirected to the forum (which I don't want to) where it says:

Session verification failed. Please try logging out and back in again, and then try again.

How to solve this?

I disabled local storage of cookies and enabled subdomain independent cookies to make the autologin work on main site, also to be able to actually be logged in at the main site.

Another problem is that I don't get redirected to the last page when I log in/out (from main site).
Title: Re: Logout doesn't work
Post by: Onin on November 21, 2007, 02:59:14 PM
bump
Title: Login doesn't work
Post by: Ant59 on November 21, 2007, 03:38:22 PM
I need to know this too! But with the ssi_login(). It won't redirect.


<?php
$_SESSION
['login_url']="/";
ssi_login();
?>



Where am I going wrong? (I'm using the require function at the top of the page to get SSI.php)
Title: Re: Logout doesn't work
Post by: Ant59 on November 22, 2007, 11:05:24 AM
*BUMP*
Title: Re: Logout doesn't work
Post by: Onin on November 22, 2007, 11:25:54 AM
I disabled database driven sessions and it's all working now :)