-
Session TimeOut in ASP?
hello everybody!!
Can anyone help me with my problem please... I am developing an e-commerce application right now... it is an online ordering of product and online payment to the bank, this is a very critical transaction so I set up my session timeout to only 5 minutes.....
the scenario, i am maintening a session status in my local database, everytime a user logout, i'm updating the status to "OUT" for me to check those who are still login... now, when the user didn't press the logout button, the status is still "IN" even the session already timeout. I tried to place a code to update the status, in the SESSION_OnEnd() in Global.asa file but still didn't work.... What other option can I use or at what event can I place my code?
hope you understand... thanks
joe
-
You can not depend on Session_OnEnd (Unfortunately.. Thanks MS!)
You will need to probably create an ActiveX control that uses a timer control to do this and create an instance of it in each session.
But, I'm just curious.. why bother? If they are gone for 5 mins, they won't be still logged in. Unless someone is on their PC where the memory cookie is still active in that 5 mins, they won't be able to log in as them or connect with-in their session.
The nature of the web is stateless. (Not to say you can't do what your asking, just wondering why)