Session object timeout

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?
 
A

ashelley

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top