NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: ccordes on December 31, 2010, 10:36:26 AM

Title: Session ID always the same.
Post by: ccordes on December 31, 2010, 10:36:26 AM
I have a client where the first session ID is always the same. Login in and out and back in, same ID.
I checked to see if NewSession were being called with an ID anywhere, it isn't.
This doesn't seem to hurt the running any, but it does seem a little odd.
Title: Re: Session ID always the same.
Post by: Bruce on January 02, 2011, 09:54:01 PM
Hi Chris,

the session has nothing to do with login or logout (although you can _force_ a session change on login if you like.)

The session is bound to the instance of the browser. So you need to close the browser (*) to get a new session number.

(*) note, in IE this means closing just the current instance of the browser, in FF it means closing _all_ instances of the browser that are open, and so on - it differs from one browser to another.

cheers
Bruce
Title: Re: Session ID always the same.
Post by: ccordes on January 03, 2011, 04:07:33 AM
Thanks! I thought by logging out and killing the session with p_web.DeleteSession, a new one would be created.
Title: Re: Session ID always the same.
Post by: Bruce on January 04, 2011, 10:01:13 PM
If you do a delete session then it will be deleted - but a new one (with the same number) will start when the user accesses from the browser again.

cheers
Bruce