您可以通过编程改变会话超时在ASP.NET? [英] Can you programmatically change session time out in ASP.NET?
本文介绍了您可以通过编程改变会话超时在ASP.NET?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
能不能做到还是唯一的办法就是在IIS配置?
Can it be done or the only way is to configure it on IIS?
推荐答案
您通常编辑Global.asax文件的方法,在session_start并设置的查看Session.Timeout 以任何你想要的。您可以在code做别的地方了。
You edit generally the Global.asax file's Session_Start method and set Session.TimeOut to whatever you want. You can do this anywhere else in your code too.
这篇关于您可以通过编程改变会话超时在ASP.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文