Re: [PHP-DB] session_destroy();

2004-11-10 Thread graeme
Hi, I've been struggling with the same problem. The following code will destroy the session information and remove the cookie session_start(); $_SESSION = array(); if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time()-42000, '/'); } session_destroy(); However my problem

RE: [PHP-DB] session_destroy();

2004-11-09 Thread Norland, Martin
session_regenerate_id is what you're looking for http://us2.php.net/manual/en/function.session-regenerate-id.php Note that it keeps the session data, so you still need to session_destroy if you want to purge the data. - Martin Norland, Database / Web Developer, International Outreach x3257 The

Re: [PHP-DB] session_destroy();

2004-11-08 Thread Ramil Sagum
On Tue, 9 Nov 2004 01:00:12 -0500, Chris Payne [EMAIL PROTECTED] wrote: Hi there everyone, I need to destroy a session in the browser so when they log out it clears all the session data from the browser, I have tried: session_destroy(); But it doesn't seem to do it as the browser keeps the

Re: [PHP-DB] session_destroy(); on submit?

2003-01-21 Thread Paul Burney
on 1/21/03 9:19 PM, Addison Ellis at [EMAIL PROTECTED] appended the following bits to my mbox: hello, will the following work or should i be attempting something else? /form input type=submit name=submit value=Submit onClick=?session_unset();,session_destroy();? input type=hidden name=url