如何防止asp.net中的会话超时 [英] how to prevent session time out in asp.net
本文介绍了如何防止asp.net中的会话超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
iam已在web.confige中描述
< < span class =code-leadattribute> system.web > < sessionstate >
mode =InProc
cookieless =true
timeout =30/>
< / sessionstate > < / system.web >
但会话超时
解决方案
它取决于服务器内存,如果内存已满,则会清除会话。
因此在服务器中使用模式= StateServer
以下链接为您提供相同问题的线程,并且已接受回答,因此它可能对您有所帮助。请通过以下链接。
http://stackoverflow.com/questions/10580274/how-to-stop-session-timeout-after-20minutes-in-asp-net [ ^ ]
是Sandeep Singh Shekhawat ......
你是对的,它也需要在IIS中修改应用程序配置设置。
iam already describe in web.confige
<system.web><sessionstate>
mode="InProc"
cookieless="true"
timeout="30" />
</sessionstate></system.web>
but session time out
解决方案
It depends on server memory if memory full then session will be cleared.
So in server usemode="StateServer"
The following link for a thread of same issue as you have and that is accepted answer so it could be helpful for you. Please go through following link.
http://stackoverflow.com/questions/10580274/how-to-stop-session-timeout-after-20minutes-in-asp-net[^]
Yes Sandeep Singh Shekhawat...
You are right it also needs to modify Application Configuration settings inside IIS also.
这篇关于如何防止asp.net中的会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文