Originally posted by pablodelapena
why not just give it a blank value?
or is that just silly?
Not hugely silly. But instead of setting it to "" it's better to set it to null - empty strings are still saved as session data, but nulls aren't. There was a bug in early 4.1.x that meant unset($_SESSION['foo']) didn't work - and setting them to null was the workaround, but that was fixed long ago and any reasonably current version doesn't have a problem with unset.