Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET

Status
Not open for further replies.

prem152003

Programmer
Joined
Oct 11, 2003
Messages
6
Location
US
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.
 
Try
{
"This forum topic";
}
Catch
{
"The wrong forum topic";
}
Finally
{
Redirect Members == Forum855;
"Red Flag your own posting in the incorrect forum to keep things clean";
}

[smile]

___________________________________________________________________

onpnt.com
SELECT * FROM programmers WHERE clue > 0
(0 row(s) affected) -->faq333-3811

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top