Hi, I have some logout code that isn't working exactly as it should. It's not unsetting all the variables, because when I log back in, things aren't changed back to their default behavior. Here's my code: <?php //start the session session_start(); //clear session variables $_SESSION = array(); //delete session cookie if it is set if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time()-1000000, '/'); } //destroy the session session_destroy(); php?> Thanks for the help BlueScale