避免特定aspx页面上的会话超时 [英] Avoid session time out on specific aspx pages

查看:105
本文介绍了避免特定aspx页面上的会话超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,



我想知道是否有在Asp.net web.config文件上的方式,以避免某些aspx页面的会话超时。



谢谢

Hi Experts,

I am wondering if there is a way on Asp.net web.config file to avoid session timeout from certain aspx pages.

Thanks

推荐答案

请参考此链接



http://www.aspdotnet-suresh.com/ 2010/10 / session-timeout-problem-in-aspnet.html [ ^ ]


Session.Timeout = 40

The Page_Load event is a good place to set this.


在web.config文件中



In web.config file

<system.web>
   <sessionstate timeout="30" />
<system.web>
</system.web></system.web>







这不会让会话在30分钟前结束





Salah

Osmosys




this wont allow session to end before 30minutes


Salah
Osmosys


这篇关于避免特定aspx页面上的会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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