PDA

View Full Version : Logout needs to destroy custom session and cookies....


bigtime
07-24-2006, 04:21 AM
Hi,

I made a custom login script which logs into vbulletin and my review script. While logging into vb, it sets some session variables that the review script uses.

When logging out of vb, I need to delete my custom sessions.

Here's an example of one of my custom sessions:

$_SESSION['signedin'] = "y";

What is the best approach to destroy my custom sessions?

Thanks,

Tim

Lionel
08-07-2006, 10:58 PM
I am also interested to know how to destroy ALL sessions created by the site, either from vb or other scripts on vb logout.

Good news. I found the solution at
http://us3.php.net/function.session-destroy

you have to put the code before the redirect in login.php (section do logout) , and that will destroy all sessions