prem152003
Programmer
I had a simple question that I needed some clarification on regarding sesison variables.
In my ASP.NET application, I changed the timeout value in the web.config and IIS 5.0 to
1 minute.
In webform1.aspx, in the page_load event, I create a session variable
Session("x") = 5.
I have a button on the page and I redirect to webform2.aspx. In the page_load of webform2.aspx, I read the value of the session variable and display it in the label.
I display webform1.aspx on the browser, sit idle for a couple of minutes and click on the
button to go to webform2.aspx and am still able to display the value 5 in the label.
My understanding is that if the session times out, I should not have access to any session data or maybe the session is not timing out...
I would really appreciate any help in this regard.
I am using XP professional and IIS 5.
In my ASP.NET application, I changed the timeout value in the web.config and IIS 5.0 to
1 minute.
In webform1.aspx, in the page_load event, I create a session variable
Session("x") = 5.
I have a button on the page and I redirect to webform2.aspx. In the page_load of webform2.aspx, I read the value of the session variable and display it in the label.
I display webform1.aspx on the browser, sit idle for a couple of minutes and click on the
button to go to webform2.aspx and am still able to display the value 5 in the label.
My understanding is that if the session times out, I should not have access to any session data or maybe the session is not timing out...
I would really appreciate any help in this regard.
I am using XP professional and IIS 5.