Click here to Skip to main content
14,661,186 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have a website running on my local IIS server (version 5).

Now I want to change the session timeout from default 20 minutes to let suppose 5 minutes.
I have tried various things e.g; change the session timeout from IIS , from web.config and from session.timeout property but having no effect any of these.

Please let me know the way how to change or increase the session timeout.

My requirement actually is to increase the timeout from 20 mins to 1 hr and 30 mins.

Please Help me in this.

Thanks in Advance.
Updated 19-May-11 2:14am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

By default session time out is 20 minutes but one can
change it.
There are two ways to change the sessiontime out
in that is:-

1) from web config. file by setting the session timot
element eg.
<sessionstate timeout="60"/>

2) by doing programtically eg.

Added to that this[^] also might help you.
fawadparacha 19-May-11 7:33am
i have mentioned in my question i have tried this but no effect on session state

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100