note 64529 deleted from function.session-commit by bjori
| From: | bjori@php.net | Date: | Tue, 18 Apr 2006 07:50:34 +0000 |
| Subject: | note 64529 deleted from function.session-commit by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-108385@lists.php.net to get a copy of this message | ||
Note Submitter: forumdesfinders at gmail dot com
Reason: useless
----
Destroy all session :
<?php
function zsid_destroy()
{
$_SESSION = array();
if (function_exist(session_commit))
{
session_commit();
}
else
{
session_destroy();
}
}
?>
(include of zsid_lib)