As my user is able to sign into their account, they must also be able to sign out of their account. To sign out we must destroy the session. session_destroy() will delete the session file (if file storage is used). Otherwise the session file will reside on the server until the garbage collection deletes it.

No comments:
Post a Comment