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>");
} 5 1093
Here is a question to ponder: how does the server know that IE closed on the
client?
Answer: It doesn't. Sessions are closed when the session times out, unless a
person logs off. Sessions time out, by default, 20 minutes after the last
hit.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
*************************************************
Think outside the box!
*************************************************
"genc ymeri" <ge********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... 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>");
}
Here is a question to ponder: how does the server know that IE closed on the
client?>>>>>>>>>>>>>
Good point and great approach of answering. I had the wrong impression that
the session has a persistent connection with the webserver so as soon as IE
get closed I assumed that server knows it.
Thanks a lot,
Genc Ymeri.
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamM> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl... Here is a question to ponder: how does the server know that IE closed on the client?
Answer: It doesn't. Sessions are closed when the session times out, unless a person logs off. Sessions time out, by default, 20 minutes after the last hit.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
************************************************* Think outside the box! ************************************************* "genc ymeri" <ge********@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... 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>");
}
Hi,
I hope you need to follow some articles written about asp.net before doing
it. this is related to the asp.net architecture.
this is a simple solution for this.
1) open the file "web.config" in the application root directory.
2) goto the place where display this xml node.
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes"
cookieless="false"
timeout="20"
/>
3) set the value of "timeout" to 1. timeout="1"
now the session end will call in 1 minute after close the browser.
hope this helps,
regards,
CMA
"genc ymeri" <ge********@hotmail.com> wrote in message
news:#8**************@TK2MSFTNGP12.phx.gbl... 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>");
}
thanks...
"CMA" <cm**************@textcentric.lk> wrote in message
news:eZ**************@TK2MSFTNGP10.phx.gbl... Hi,
I hope you need to follow some articles written about asp.net before doing it. this is related to the asp.net architecture.
this is a simple solution for this. 1) open the file "web.config" in the application root directory. 2) goto the place where display this xml node. <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
3) set the value of "timeout" to 1. timeout="1"
now the session end will call in 1 minute after close the browser.
hope this helps, regards, CMA "genc ymeri" <ge********@hotmail.com> wrote in message news:#8**************@TK2MSFTNGP12.phx.gbl... 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>");
}
"genc ymeri" wrote: thanks...
"CMA" <cm**************@textcentric.lk> wrote in message news:eZ**************@TK2MSFTNGP10.phx.gbl... Hi,
I hope you need to follow some articles written about asp.net before doing it. this is related to the asp.net architecture.
this is a simple solution for this. 1) open the file "web.config" in the application root directory. 2) goto the place where display this xml node. <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
3) set the value of "timeout" to 1. timeout="1"
now the session end will call in 1 minute after close the browser.
hope this helps, regards, CMA "genc ymeri" <ge********@hotmail.com> wrote in message news:#8**************@TK2MSFTNGP12.phx.gbl... 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>");
}
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dave Smithz |
last post by:
Hi there,
Users of my PHP DB application have complained that it seems to log them out
every now and then. I actually assume this is when it has been idle for
sometime as I use session variables...
|
by: doltharz |
last post by:
Please Help me
i'm doing something i though was to be REALLY EASY but it drives me
crazy
The complete code is at the end of the email
(i mean newsgroup article),
i always use Option...
|
by: Nancy Drew |
last post by:
hi all
i'm trying to keep users from being able to login to a site twice at the
same time. everytime a user does a login, i stick their userID into an
application scoped array. if they try to...
|
by: genc ymeri |
last post by:
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...
|
by: David Popeck |
last post by:
I have an ASP.NET application that is using forms authentication and I want to know when a session has timed out
I have read quite a lot of posts here about this but no-one seems to have to same...
|
by: Darren Clark |
last post by:
I am having some troubles with Sessin varables dieing..
Basically ihave my own class structure called USER that once the user logs in i save it to a session var called
Session = myUserObject;
...
|
by: Charles Law |
last post by:
I have an application that creates a class. The class has unmanaged
resources, so must end gracefully.
How can I guarantee that the unmanaged resources are freed?
I have looked at IDisposable,...
|
by: Phillip N Rounds |
last post by:
I'm writing a user control which has two states: Active & InActive. I
additionally am required that there to be only one active control per page,
and all logic has to be contained within the...
|
by: sasidar.d |
last post by:
hi techies
I have created a Login web page . It gets the user identity using the
window nt authetication.
The page is working fine. I have removed the allow anonymous access
check box for the...
|
by: Peter Afonin |
last post by:
Hello,
I have a weirdest issue I've ever had.
I have a function that enters some data into the Oracle table and
returns the sequential row number for the new record (autonumber):
Private...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |