Page 1 of 1

PHP Session issues

Posted: Thu Nov 30, 2006 3:13 pm
by monkeyfoot
Hi everyone! Long time lurker, first time poster. I'm having a problem with some session variables.

Adding info into the session works just fine. So does modifying that information. I can't seem to delete or clear out the values of the variables. Below are some of the methods I'm trying to use. None of them seem to be working.

Code: Select all

if(isset($_SESSION['userErrors']))
{
$_SESSION['userErrors'] = null;
session_unregister('userErrors');
unset($GLOBALS['userErrors']);
unset($GLOBALS['_SESSION']['userErrors']);
unset($userErrors);
}
I'm running PHP 5.1.6 on WinXP. Any help would be greatly appreciated!

-Mike

Posted: Thu Nov 30, 2006 3:17 pm
by Luke
how about:

Code: Select all

<?php
unset($_SESSION['userErrors']);
?>

Posted: Thu Nov 30, 2006 3:22 pm
by monkeyfoot
Alas, that does seem to be working either. :(