On 27 Jan 2004 Stuart wrote:
I am trying to find a reliable method to clean out all session variables and start clean.
http://php.net/session_destroy
That destroys the file but (at least the docs say) does not clean out the global variables, and does not seem to work in my example.
In that case, try this...
foreach (array_keys($_SESSION) as $key) unset($_SESSION[$key]);
Untested, but should work.
-- Stuart
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php