3
I was researching on functions of logout in php and saw some examples like:
if(isset($_SESSION)) {
unset($_SESSION['minhaSessao']); //repetir para cada sessao
session_unregister();
session_destroy();
}
I was wondering if there is any way to clear all active sessions of my application without having to set one by one repeatedly.
What is "all sessions"? All session data of a user, or all users? If this is the last case, the current answers do not suit you.
– bfavaretto
@bfavaretto the answers served yes, I appreciate the concern. Are the sessions of the user in question, as I said in the question, would be for a function of logout.
– Dirty Old Man