The cookie that stores the session id will live until the browser window is
closed.  You can apply a different lifetime to the cookie by using
session_set_cookie_params()  but I doubt that'll do what you want.  Just use
the session_id() function to change the session id manually when you
register your variables.  This is a good idea even if you're not using
sessions for a secure login system.


----- Original Message -----
From: "Gabor Niederlaender" <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 12:07 PM
Subject: [PHP] Destroying a session!!!

> Hi all!
> I have seen a couple of discussions on the same topic, but even so I
> do not really know how to destroy sessions.
> I would like to achieve, that a second login after a logout generates
> a wholly new session, with a new session id.
> I have tried:
>    session_unset();
>    session_destroy();
> and after every logout and re-login I get the same session...
> What is the solution?
> Thanks and
> Best regards,
> Gabor
> --
> PHP General Mailing List (
> To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to