NetTalk Central

Author Topic: Session ID always the same.  (Read 2270 times)

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Session ID always the same.
« 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.
Real programmers use copy con newapp.exe

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11181
    • View Profile
Re: Session ID always the same.
« Reply #1 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

ccordes

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
    • Email
Re: Session ID always the same.
« Reply #2 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.
Real programmers use copy con newapp.exe

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11181
    • View Profile
Re: Session ID always the same.
« Reply #3 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