PHP Session issues
Posted: Thu Nov 30, 2006 3:13 pm
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.
I'm running PHP 5.1.6 on WinXP. Any help would be greatly appreciated!
-Mike
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);
}-Mike