Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I developed one asp.net application, I use session on my project, if user log on in my application, after few minute my session is automatically over and go to the login page. I didn't declare session time on my application. please help how can I stop it.

Thank You
Posted
Comments
Wombaticus 27-Oct-14 6:19am    
Personally, I stopped using session state in my applications years ago. I much prefer to use cookies instead, over which I have complete control.

You Can Add Session in Web.Config File And Keep TimeOut =20 or Any Time You want

HTML
<sessionstate mode="True" timeout="20">
 
Share this answer
 
v3
 
Share this answer
 
please check Session Timeout[^]
 
Share this answer
 
The default session timeout is 20 minutes. You can change it in Web.config file.
<sessionstate mode="true" cookieless="true" timeout="30"></sessionstate>

Refer
 
Share this answer
 
Use this in web .config.
<sessionstate timeout="20" mode="InProc">

Refer below link which may help you.
http://stackoverflow.com/questions/21990619/how-to-increase-session-timeout-in-asp-net
 
Share this answer
 
XML
<configuration>
  <system.web>
    <sessionState timeout="1440"></sessionState>
  </system.web>
</configuration>
 
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