mercredi 26 mai 2021

how to unset and destroy only one session

Using PHP, consider that I have many active sessions, and I want to destroy and unset a specific one. the session name is $_SESSION['panel'];

I used session_unset($_SESSION['panel']); but it doesn't work

PS: I don't like to use session_destroy(), because it destroys all other sessions.




Aucun commentaire:

Enregistrer un commentaire