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?
Because the session is still accessible on the same page load.
$_SESSION['blah'] = 'adsf';
I just found that out while running tests. Thanks.