Click here to Skip to main content
15,749,072 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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.
Share this answer
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900