Gabor, after some searching I discovered some wonderful user comments in the
session_destroy() page you might want to check out.  You have to get dirty
with cookies but it may be possible after all.  :)

http://www.php.net/manual/en/function.session-destroy.php

-Kevin

----- Original Message -----
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 1:43 PM
Subject: Re: [PHP] Destroying a session!!!


> 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.
>
> -Kevin
>
> ----- Original Message -----
> From: "Gabor Niederlaender" <[EMAIL PROTECTED]>
> To: <[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 (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to