I\'m trying to learn PHP and using sessions. I seen examples about using session_destroy on logout, but I see this in the php documentation:
In order
Only use session_unset() for older deprecated code that does not use $_SESSION.
session_start();
session_unset($_SESSION['email-user']); session_destroy();`