[PHP] Destroying the Session Object

2005-03-24 Thread Jacques
How can I destroy the session object for a particular user when that user 
leaves my web site without properly signing out?

Jacques

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



Re: [PHP] Destroying the Session Object

2005-02-18 Thread Matt M.
> I am developing an application. When the user signs in a Session ID is
> created (for argument sake: 123). I have a sign out page that has the script
> session_destroy() on it. This page directs me to the sign in page. When I
> sign the same or any other user in again I get the same session id (123).
> 
> However, when I close the browser window and sign in again as any member,
> the session id changes.
> 
> How does this work and how can I ensure that a unique session id is
> allocated to every new user that signs in?


some good reading
http://us2.php.net/session

you could use http://us2.php.net/session_regenerate_id to create new ids

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



[PHP] Destroying the Session Object

2005-02-18 Thread Jacques
I am developing an application. When the user signs in a Session ID is 
created (for argument sake: 123). I have a sign out page that has the script 
session_destroy() on it. This page directs me to the sign in page. When I 
sign the same or any other user in again I get the same session id (123).

However, when I close the browser window and sign in again as any member, 
the session id changes.

How does this work and how can I ensure that a unique session id is 
allocated to every new user that signs in?

Jacques 

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