01.
protected
void
Application_Start(
object
sender, EventArgs e)
02.
{
03.
Application[
"OnlineNow"
] = 0;
04.
}
05.
06.
protected
void
Session_Start(
object
sender, EventArgs e)
07.
{
08.
Application.Lock();
09.
Application[
"OnlineNow"
] = Application[
"OnlineNow"
] = +1 ;
10.
Application.UnLock();
11.
}
12.
13.
14.
15.
protected
void
Application_BeginRequest(
object
sender, EventArgs e)
16.
{
17.
18.
}
19.
20.
protected
void
Application_AuthenticateRequest(
object
sender, EventArgs e)
21.
{
22.
23.
}
24.
25.
protected
void
Application_Error(
object
sender, EventArgs e)
26.
{
27.
28.
}
29.
30.
protected
void
Session_End(
object
sender, EventArgs e)
31.
{
32.
Application.Lock();
33.
Application[
"OnlineNow"
] = Application[
"OnlineNow"
] = -1;
34.
Application.UnLock();
35.
}
36.
37.
protected
void
Application_End(
object
sender, EventArgs e)
38.
{
39.
Application[
"OnlineNow"
] =
null
;
40.
}