Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

To maintain session i am putting this line
XML
<sessionState mode="InProc" timeout ="60"></sessionState>


I am using IIS7 for hosting the website is any other setting i need do for maintaining the session for 60 minutes?

Please help me!!!

Thanks in advance,
Subbu
Posted
Updated 24-Mar-11 21:33pm
v2
Comments
Ankur\m/ 25-Mar-11 3:34am    
No other setting is required, that will do the job!

To specify timeout in IIS 7 set Connection Time out

Right Clik website-->manageWebsite-->AdvancedSettings-->Connection Limits--> Connection Time out in seconds.
This will solve your problem.
 
Share this answer
 
v2
Comments
[no name] 25-Mar-11 6:30am    
Thanks for your update Tarun.
You might want to modify "Session State" on your website options tab as well on IIS7...

http://istanbul-host.com/images/s2.png[^]
 
Share this answer
 
Add this way...

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"/>
 
Share this answer
 
v3

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