Posted by Janwillem Borleffs on 06/08/05 12:30
Matthias Braun wrote:
> I try to delete at the end of the php-session either the cookies or
> the sessionid (depending on cookies are allowed or not):
>
It doesn't work that way, because a new PHPSESSID is created each time you
call session_start().
When your goal is to logout a user or something like that, you should unset
an identifier, e.g. ``loggedin'':
session_start();
if ($logout) {
unset($_SESSION['loggedin']);
}
JW
Navigation:
[Reply to this message]
|