开发者

Session Timeout extend in Asp.Net

How to extend the session timeout? I tried entering:

Session.Timeout = 720;

In formLoad and also tried in webconfig:

<system.web>
    <sessionState 
     mode="InProc"
     cookieless="true"
     ti开发者_StackOverflowmeout="720" />
</system.web>

But still it times out after 10 minutes. Can anyone help about this issue?


Take a look at this Microsoft Technet article. Check if it suits your needs.

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


You might see this article, I haven't used it but a time ago I needed something like this to use in a webservice and I finished with another approach. It could be useful to you:

The Defibrillator: Keeping ASP.NET Session Alive Ad Infinitum

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜