G
genc ymeri
Hi
I have placed an encounter code in the session_end as well in the
session_start. I'm decreasing the number with 1 everytime a session ends. I
open several IE-s and I closed some of them but the number of sessions only
increase. When really the session_end code get called ? I thought that once
we close the IE, the session go to go, and the session_end gets to get
called !
Thaks in advance,
Genc Ymeri.
protected void Session_End(Object sender, EventArgs e)
{
Application["SessCounts"] = (int) Application["SessCounts"] -1 ;
}
protected void Application_Start(Object sender, EventArgs e)
{
Application["AppCounts"] =0;
Application["SessCounts"] =0;
Application["AppCounts"] = (int) Application["AppCounts"] + 1;
}
protected void Session_Start(Object sender, EventArgs e)
{
Application["SessCounts"] = (int) Application["SessCounts"] + 1;
Response.Write("Number of Apps" + Application["AppCounts"] + "<br>");
Response.Write("Number of Sess" + Application["SessCounts"] + "<br>");
}
I have placed an encounter code in the session_end as well in the
session_start. I'm decreasing the number with 1 everytime a session ends. I
open several IE-s and I closed some of them but the number of sessions only
increase. When really the session_end code get called ? I thought that once
we close the IE, the session go to go, and the session_end gets to get
called !
Thaks in advance,
Genc Ymeri.
protected void Session_End(Object sender, EventArgs e)
{
Application["SessCounts"] = (int) Application["SessCounts"] -1 ;
}
protected void Application_Start(Object sender, EventArgs e)
{
Application["AppCounts"] =0;
Application["SessCounts"] =0;
Application["AppCounts"] = (int) Application["AppCounts"] + 1;
}
protected void Session_Start(Object sender, EventArgs e)
{
Application["SessCounts"] = (int) Application["SessCounts"] + 1;
Response.Write("Number of Apps" + Application["AppCounts"] + "<br>");
Response.Write("Number of Sess" + Application["SessCounts"] + "<br>");
}