为什么会话会在几秒钟内到期 [英] why session expires within couple of seconds
本文介绍了为什么会话会在几秒钟内到期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在web.config中设置了会话超时但会话在我工作时会自动过期。
有没有办法设置sesssion超时
//web.config
i have set session timeout in web.config but session expires automatically while i am working.
is there any way to set sesssion timeout
//web.config
<authentication mode="Forms">
<forms loginUrl="~/Home/Login" timeout="30" />
</authentication>
<sessionState timeout="30"></sessionState>
推荐答案
<configuration>
<system.web>
<sessionstate>
mode="InProc"
cookieless="true"
timeout="30" />
</sessionstate></system.web>
</configuration>
如果设置超时属性为30。会话将在30分钟后到期。
if set timeout property as 30 .the session will be expires after 30 minutes.
>
LINK 1 [ ^ ]
LINK 2 [ ^ ]
LINK 3 [ ^ ]
LINK 4 [ ^ ]
链接1是一个链接的东西,将解决你的问题。
-KR
LINK 1[^]
LINK 2[^]
LINK 3[^]
LINK 4[^]
LINK 1 is hell of a link thing, will solve your problem.
-KR
这篇关于为什么会话会在几秒钟内到期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文