Session object timeout

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I set a Session object [Session["x"] = "44" in one page and retrieve it later in another page: String str = Session["x"].ToString().

The timeout in Web.config = 30;

I'm able to retrieve the value (str) anytime up to about 15 minutes after it's created, but not thereafter. Thereafter, I get a "object reference not set to an instance ..." messasge.

How can I retrieve the value of Session["x"] anytime up to 30 minutes?
 
I set a Session object [Session["x"] = "44" in one page and retrieve it later in another page: String str = Session["x"].ToString().

The timeout in Web.config = 30;

I'm able to retrieve the value (str) anytime up to about 15 minutes after it's created, but not thereafter. Thereafter, I get a "object reference not set to an instance ..." messasge.

How can I retrieve the value of Session["x"] anytime up to 30 minutes?

In the application configuration of IIS there is "enable session
state". Try modifying this value too?

-Adam
 
I looked in IIS Manager of Windows Server 2003 but couldn't find 'application configuration' Where do I find this?

I set a Session object [Session["x"] = "44" in one page and retrieve it later in another page: String str = Session["x"].ToString().

The timeout in Web.config = 30;

I'm able to retrieve the value (str) anytime up to about 15 minutes after it's created, but not thereafter. Thereafter, I get a "object reference not set to an instance ..." messasge.

How can I retrieve the value of Session["x"] anytime up to 30 minutes?

In the application configuration of IIS there is "enable session
state". Try modifying this value too?

-Adam
 
Back
Top