[PHP] New Session Variable unset doesn't work

2002-05-03 Thread Sascha Ragtschaa
Hi, I somehow cannot unset Session variables. If I set for example $_SESSION[error]=formcheck (the new style) and I want to unset it at the end of the page (unset($_SESSION[error])), it's there again on the next page. Is there a special way to unset the new Session variables? I am using

Re: [PHP] New Session Variable unset doesn't work

2002-05-03 Thread Dan Hardiker
I somehow cannot unset Session variables. If I set for example $_SESSION[error]=formcheck (the new style) and I want to unset it at the end of the page (unset($_SESSION[error])), it's there again on the next page. Is there a special way to unset the new Session variables? Seen as you used

Re: [PHP] New Session Variable unset doesn't work

2002-05-03 Thread Pedro Pontes
Yes, always remember that unset() deletes the REFERENCE to the variable, not the variable itself, so in the next page, when you session_start() again, the reference is recreated to the still existing value. So, session_unregister is fundamental to unregister the reference from the session. To