Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All,
I am using following code in web.config but its not working.
if any idea please help me.

XML
<authentication mode="Forms">
      <forms loginUrl="Login.aspx" timeout="60" />
   </authentication>
   <sessionState mode="InProc" cookieless="false" timeout="60"/>


Thanks.
Posted

You can do that in different ways,

XML
In web.config
<sessionState timeout = "60" mode = "InProc">
Default value must be there as 20

Else you can do that from IIS level
On IIS select the website you want to change the default session time out. Click on "Session State". provide the Time-out(in minutes): as 60
 
Share this answer
 
Comments
Mukesh Pr@sad 15-Oct-14 23:54pm    
Thanks
Following code is absolutely correct.
The problem what I found that I was not increasing the timeout in File Zilla From where I have hosted my Project.


XML
<authentication mode="Forms">
      <forms loginUrl="Login.aspx" timeout="60" />
   </authentication>
   <sessionState mode="InProc" cookieless="false" timeout="60"/>


Thanks for ur replies.
 
Share this answer
 
I did not exactly about this matter, i recently go through this link http://www.javatpoint.com/java-tutorial[^] which help me lot in my work. I thought this link will help you lot.
 
Share this answer
 

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