note 88399 deleted from function.session-unset by danbrown
| From: | danbrown@php.net | Date: | Thu, 22 Jan 2009 14:28:07 +0000 |
| Subject: | note 88399 deleted from function.session-unset by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149653@lists.php.net to get a copy of this message | ||
Note Submitter: simon dot kokr at centrum dot cz
----
I used these solutions, both are working:
for one user:
<?php
session_start();
unset($_SESSION["name"]);
header("location:./?part=login");
?>
or, for all:
<?php
session_destroy();
header("location:./?part=login");
?>