The Web server automatically creates a session when a Web page in the application is opened by a user who does not have a session. The server destroys the session either when it times out, or the Abandon method is called.
The session has two events, a Session_OnStart event and a Session_OnEnd event.
You can specify script for these events in the global file, Global.asa. When the session starts, the server looks in the Global.asa file and processes the Session_OnStart event script. This script is processed before the page that the user requested. When the session ends, the server processes the Session_OnEnd event script.