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:[EMAIL PROTECTED]]
Sent: 30 July 2002 03:11
To: [EMAIL PROTECTED]
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


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to