destroy sessions
Posted: Sun Apr 18, 2004 1:55 pm
is there a function that i can use to destroy all the sessions on the server?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
But that concerns only one session, not all on the server. I think.Phenom wrote:session_destroy(); to delete them
session_unset(); to unset them
I think you couldnt be more wrong.MarK (CZ) wrote:But that concerns only one session, not all on the server. I think.Phenom wrote:session_destroy(); to delete them
session_unset(); to unset them
Code: Select all
<?php
$_SESSION = array();
session_destroy();
?>Code: Select all
<?php
$_SESSION = array();
session_destroy();
?>