Monday, March 22, 2010

Session_OnStart Event of asp

The Session_OnStart event occurs when the server creates a session. This event is placed in the Global.asa file. Session_OnEnd Event The Session_OnEnd event occurs when the session ends (abandoned or times out). This event is placed in the Global.asa file. Note: The MapPath method cannot be used in the Session_OnEnd code. Syntax ________________________________________ Examples Global.asa: To display the number of current visitors in an ASP file:

There are <%response.write(Application("visitors"))%> online now!