vendredi 23 janvier 2015

Is it a good idea to `session_destroy()` when a site's user logs off or in?

I'm building a small website project and I am curious if there would be any reason not to do session_destroy() when a user wants to log off? What about just before logging in a new user? The site request a user to be logged in before interacting with the site in any way.


Aucun commentaire:

Enregistrer un commentaire