Session timeout: can I perform any actions in the timeout?

In a classic ASP application, if I install Session.Timeout = 10(or similar), can I execute part of the code when the session expires?

I want to clear the values ​​stored in the Application object when the user session ends.

+3
source share
1 answer

Yes, you can execute the code at the end of the session. This is what Global.asa is for. In it, you can define actions for certain events, among which your session ends.

These are the events you can use:

  • Application_OnStart
  • Session_OnStart
  • Session_OnEnd
  • Application_OnEnd

, Session_OnEnd. sub Global.asa.

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

+4

Source: https://habr.com/ru/post/1766164/


All Articles