Does anyone know how I can destroy only certain sessions? The code I have at the moment destroys all the sessions but i wish to only destroy certain ones!! Cheers,
$_SESSION = array(); // Destroy the variables. session_destroy(); // Destroy the session itself.
Can you refine the question?
If you issue session_destroy(), the browser session you are currently in is the one destroyed.
If you wish to destroy some session variables, but not all of them, have a look at [man]unset/man....
🙂