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. session_destroy()).
What is the purpose of unsetting a session’s elements if you are just going to destroy the session itself anyway?