Click here to Skip to main content
15,881,559 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a asp.net 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.
Posted
Updated 19-May-11 2:14am
v5

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 asp.net that is:-


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


or
2) by doing programtically eg.
session.timeout=60


Added to that this[^] also might help you.
 
Share this answer
 
v2
Comments
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