RE: [PHP-WIN] End session
| From: | Rich Gray | Date: | Tue, 30 Jul 2002 06:43:16 +0000 |
| Subject: | RE: [PHP-WIN] End session | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15009@lists.php.net to get a copy of this message | ||
How about...
session_unset();
session_destroy();
header('Location: <blah blah>'); // Send user back to home page
exit;
The above should initialise the $_SESSION array and blow away the session
data.
HTH
Rich
-----Original Message-----
From: Kit Kerbel [mailto:kerbel5@hotmail.com]
Sent: 30 July 2002 03:11
To: php-windows@lists.php.net
Subject: [PHP-WIN] End session
I would like to know how to end a session, so, when the user hits logoff,
the user session is killed and if you user clicks a link that requires
he/she to be logged in, it will not have the session data stored still.
FYI, i am using the current syntax for sessions, $_SESSION['whatever']
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php