Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.22/5 (2 votes)
See more:
I am getting The error Session time out when I am open My website And I have to give Seession time Out Value 60mints plz help me how to set session time out atleast 20mints
Posted

See here: MSDN[^] - however, as it says: you should not set it above 20 minutes.
 
Share this answer
 
HI,

Use the following code in web config file:

XML
<configuration>
  <system.web>
     <sessionState timeout="20"></sessionState>
  </system.web>
</configuration>



Thanks
 
Share this answer
 
 
Share this answer
 
v4
XML
<head>

<meta http-equiv="refresh" content="1000" />

</head>

add this lines of code in your aspx page or master page.

automatically refresh your page every 1000 seconds.


mention the content seconds less then your session time
try this.
 
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