本文介绍了会话超时在Asp.Net中扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何延长会话超时时间?我尝试输入:

How to extend the session timeout?I tried entering:

Session.Timeout = 720;

formLoad中,并且也在webconfig中尝试过:

In formLoad and also tried in webconfig:

<system.web>
    <sessionState
     mode="InProc"
     cookieless="true"
     timeout="720" />
</system.web>

但是10分钟后仍然超时.有人可以帮忙解决这个问题吗?

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

推荐答案

看看此 Microsoft Technet文章.检查它是否满足您的需求.

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>

这篇关于会话超时在Asp.Net中扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-26 03:07