Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp session problem

Status
Not open for further replies.

xenomage

Programmer
Jun 27, 2001
98
SG
Hi all,

had this problem for a long long time.

Is it possible to obtain an event just before the session time out and then let user select whether to end the session or continue??

i know there is an On_End event but once it reach on end , all the session variables will be lost already right??

Please help. Any suggestion are appreciated.

xenomage
 
How would this work?

The client doesn't know anything the server doesn't tell it, so you'd have to pass the timeout time to the client and let it watch for it.

The server can't do anything else about it - because there isn't really any such thing as a "session" per se. The ASP "session" is a fiction, HTTP doesn't HAVE a session concept.

When your ASP page finishes processing, the server is done with it. It fakes the "session" concept by storing state info it can associate with a browser window out in the world using a cookie.

ASP doesn't actually do "events" because there is no code that can hang around watching for them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top