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?


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to