Re: session unset or unregister??

From: Date: Fri, 12 Apr 2002 06:40:31 +0000
Subject: Re: session unset or unregister??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92724@lists.php.net to get a copy of this message
Rodrigo Peres wrote:
if(isset($HTTP_GET_VARS['erase_data'])) {
    session_unregister('data');
} but the code doesn't erase the var from session, and If i use session_unset('data') it erases all vars from session, that I don't want to. How to solve this?!??! i have started the session and used session_register('data','id')...... to store the vars.
normally it should work exactly like that. how do you tell the variable isn't unregistered when you run this? did you check if the code in the if statement is executed at all? henning

« previous php.general (#92724) next »