asp.net mvc中的会话超时

时间:2022-08-11 01:39:10

In my application i am facing session timeout issue . What happens is that suddenly users kicked out . I surf alot for solution and did many things . Like increasing session timeout , idle timeout ,implemented keepalive . But issue still exists Is it possible that its due to internet connectivity . Because i saw multiple time in console that net::Error connection-reset , Network-changed etc etc.

在我的应用程序中,我面临会话超时问题。发生的事情是突然用户被踢出局。我冲浪很多寻求解决方案并做了很多事情。像增加会话超时,空闲超时,实现keepalive。但问题仍然存在它是否可能由于互联网连接。因为我在控制台中看到多次net ::错误连接重置,网络改变等等。

If yes then what could be the possible solution for this .

如果是,那么可能的解决方案是什么。

Thanks,

1 个解决方案

#1


0  

Session timeout is controlled by the following key in web.config...

会话超时由web.config中的以下键控制...

<system.web>
    <sessionState mode="InProc" timeout="30" />
  </system.web>

#1


0  

Session timeout is controlled by the following key in web.config...

会话超时由web.config中的以下键控制...

<system.web>
    <sessionState mode="InProc" timeout="30" />
  </system.web>