Hi,
I have a site I must maintain that is having a problem with users logging in and seeing the wrong information. What's happening is that the user will stop using the site without closing the browser and another user will log in and still see the first user's information.
I know that this is because the previous user's session hasn't expired. I was wondering if I could put the session.abandon command in the session_onstart routine of the global.asa before everything else. For example the following:
I'm thinking that this will annihilate any open session and allow the next user to log in to see the correct information, but I'm wondering if there are any drawbacks to this approach and if this is even doable.
Your help would be very much appreciated.
Thanks,
- VB Rookie
I have a site I must maintain that is having a problem with users logging in and seeing the wrong information. What's happening is that the user will stop using the site without closing the browser and another user will log in and still see the first user's information.
I know that this is because the previous user's session hasn't expired. I was wondering if I could put the session.abandon command in the session_onstart routine of the global.asa before everything else. For example the following:
Code:
Sub Session_OnStart
session.abandon
' other code here
end sub
I'm thinking that this will annihilate any open session and allow the next user to log in to see the correct information, but I'm wondering if there are any drawbacks to this approach and if this is even doable.
Your help would be very much appreciated.
Thanks,
- VB Rookie