unsetting a $_SESSION variable
Posted: Mon Aug 23, 2004 4:56 pm
This question probably sounds really stupid, but...
When you unset a $_SESSION variable, does its value change to ""?
And if I wanted to write an IF statement based on it being unset, would i use:
I'm sorry for the stupidity of this question, but I've been working on a set of three pages for the past day; I'm tired, I'm hungry, and I can't think straight anymore.
When you unset a $_SESSION variable, does its value change to ""?
And if I wanted to write an IF statement based on it being unset, would i use:
Code: Select all
if($_SESSION[user] != "")