Jason Pruim wrote:
One other question, to logout, can I just call a file that has session_destroy() and a header("Location: ???"); in it? Or should I do something else for logging out?

foreach (array_keys($_SESSION) as $key)
    unset($_SESSION[$key];
session_destroy();

-Stut

--
http://stut.net/

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

Reply via email to