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
if you are using session id. then you can do this
session_start(); unset($_SESSION['id']); session_destroy();
for cookies you can set the cookie time to some past date.