G
Guest
I want to control how many users there are login in my app
I have the following code on Session_Start
Application.Lock();
Application["NumVisitors"] =
int.Parse(Application["NumVisitors"].ToString()) + 1;
Application.UnLock();
and Session_End
Application.Lock();
Application["NumVisitors"] =
int.Parse(Application["NumVisitors"].ToString()) - 1;
Application.UnLock();
I dont have a SignOut button on my App because users never press it, they
just go away or close the browser
the conclusion The sessions are not being closed, actually en Debug mode I
never see the Session_End Event came up.
Any idea or Link Where Can I Start?
ken
I have the following code on Session_Start
Application.Lock();
Application["NumVisitors"] =
int.Parse(Application["NumVisitors"].ToString()) + 1;
Application.UnLock();
and Session_End
Application.Lock();
Application["NumVisitors"] =
int.Parse(Application["NumVisitors"].ToString()) - 1;
Application.UnLock();
I dont have a SignOut button on my App because users never press it, they
just go away or close the browser
the conclusion The sessions are not being closed, actually en Debug mode I
never see the Session_End Event came up.
Any idea or Link Where Can I Start?
ken