Click here to Skip to main content
15,888,803 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Can anybody tell me that how to set session timeout in second in asp.net web.config file
Posted

IIS 6.0: The minimum allowed value is 1 minute and the maximum is 1440 minutes.
XML
<configuration>
  <system.web>
    <sessionState timeout="1440"></sessionState>
  </system.web>
</configuration>
 
Share this answer
 
Session timeout can only be set in minutes. There is an exemple where the timeout is set to 120 minutes.

XML
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.web>
    <sessionState timeout="120"></sessionState>
  </system.web>
</configuration>
 
Share this answer
 
web config settings


< sessionState
mode="InProc"
cookieless="true"
timeout="30" />
 
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