在不影响现有inproc会话的情况下增加会话超时 [英] Increase session time out without affecting existing inproc session

查看:111
本文介绍了在不影响现有inproc会话的情况下增加会话超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在我的网络应用程序中使用Inproc会话,是否可以在不影响现有会话的情况下增加会话时间。如果我将更改web confing中的超时,则所有会话将自动过期。有没有办法在不影响会话的情况下增加会话超时。

Hi,

I am using Inproc session in my web application, is it possible to increase session time out without affecting the existing session. If I will change the timeout in web confing all session will automatically expire. Is there is any way to increasing the session timeout without affecting the session.

推荐答案

尝试在代码中设置



Session.Timeout = 30;



https://msdn.microsoft.com/en-us/library/ms525473(v = vs.90).aspx [ ^ ]
Try setting it in code

Session.Timeout = 30;

https://msdn.microsoft.com/en-us/library/ms525473(v=vs.90).aspx[^]


这篇关于在不影响现有inproc会话的情况下增加会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆