Rinu Rinu - 11 months ago 59
ASP.NET (C#) Question

how to make a session last for 5 hours?

I am developing an application which has a powerpoint presentation. Users are required to go through it and then accept an agreement. The users login in details are stored in the session object.when they finish the read the session object will expired. I used the following code in web.config with no effect what so ever.

<sessionState timeout="500" />

is there any setting i need to change in the IIS ? i am using iis 8.5

Answer Source

You should change the idleTimeout int your IIS. You can see this configuration on the advanced settings of the application pool of your IIS

Follow this article to change the session time out

Change IIS time out

For IIS 6 There is a Session Timeout setting in Properties -> Home Directory Tab -> Configuration button -> Options tab. Looks like this:

enter image description here