Asp – legacy (classic) ASP code session issue

asp-classicsession

My question is about classic ASP, not ASP.Net. I ask expert here since search engine always tell me ASP.Net answers. My confusions are,

  1. How to set session expiration time in classic ASP code or through configuration?
  2. How to extend session expire time? Is there a session expire event?
  3. How to know when session will expire?

thanks in advance,
George

Best Answer

Please read this, I think it answers all your questions:

http://www.w3schools.com/ASP/asp_sessions.asp

George,

There is a session_end event on the server side, but I suppose what you want is to detect it on client side.

To do that, you must set a timer on javascript, to end for example one minute before the session timeout and popup an alert. The alert gives the user the choice to extend the session. If the user says yes, then you make a post of the form (or an ajax call or anything that generates a request on the server side and so extends the session).

Related Topic