Page 1 of 1

another session problem

Posted: Sat Feb 07, 2004 7:21 pm
by leoric1928
Good day,

I am having a problem with my session. The scenario is this, whenever a user logs on to my application it creates a session then after the user is done he must log off so the session will end. But what if the user does not log off, he just close the browser then he logs on again as a different user and the session timer does not yet reach the the timeout that I set, and since the session is still active the user will see the profile of the previous user not the one he logged on. How will I correct this problem? Tnx

Posted: Sat Feb 07, 2004 7:35 pm
by DuFF
A session will automatically stop if the browser is closed. No need for a expiration time, this is all taken care of for you :D

Posted: Sat Feb 07, 2004 8:11 pm
by leoric1928
But whenever I close the browser and relogon as a different user, the profile that I see is the previous user not the one i logged on. what seems to be the problem here? tnx

Posted: Sat Feb 07, 2004 8:38 pm
by Michael 01
Do you have track vars, or global_sessions on ?

Posted: Sat Feb 07, 2004 11:13 pm
by d3ad1ysp0rk
what does your code look like where you set the session vars?

you probably used a experiation time, which isnt necesary..