|
-
Jun 20th, 2001, 10:56 PM
#1
Thread Starter
New Member
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
-
Jun 21st, 2001, 09:25 AM
#2
Frenzied Member
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)
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|