Custom login/out problem.

Started by burzum, November 19, 2005, 11:27:28 AM

Previous topic - Next topic

burzum

Ive written my own login because i wanted to use my own templatesystem and get now  this error when i push the logout button.

German:
Sitzungs Check fehlgeschlagen. Bitte loggen Sie sich aus und versuchen Sie es erneut.

my translation of the errormsg:
Session check failed. Please logout and try again.

Heres the code that handles the logout:
    if($_POST['logout'] == logout)
    {
        $_SESSION['login_url'] = 'http://www.event-team-saar.de/'.$current_url;
        logout();
        exit;
    }


And yes, im including the SSI.php and LogInOut.php.

Any ideas how to solve the problem? I want a clean logout that redirects the user back to the last viewed page.

JayBachatero

You can try this

ssi_logout
($_SESSION['logout_url']);

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Advertisement: