shinve — 2011-12-01T00:33:06-05:00 — #1
In many examples I have seen, when a user logs out, each thing in a session is unset (ex. unset($SESSION['email']))and then the session is destroyed (ex. sessiondestroy()).
What is the purpose of unsetting a session's elements if you are just going to destroy the session itself anyway?
scootstah — 2011-12-01T01:46:23-05:00 — #2
Because the session is still accessible on the same page load.
$_SESSION['blah'] = 'adsf';
shinve — 2011-12-01T06:52:21-05:00 — #3
I just found that out while running tests. Thanks.