如何设置文本框的会话超时期限 [英] how to set session time out period for a textbox
本文介绍了如何设置文本框的会话超时期限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好先生.
在我的应用程序中,默认会话超时时间为20分钟.
以及如何将文本框的会话超时时间设置为30分钟.
如果有人知道,请告诉我.
谢谢.
sateesh
hello sir.
in my application default session time out period is 20 minutes.
and how to set session time out period for a textbox as 30 minutes.
if any body know please tell me.
thanking you.
sateesh
推荐答案
会话超时基于网站.您在Web.Config文件中定义它.
您不能将网站会话超时设置为20分钟,而将网站中的控件设置为30分钟设置为超时!
我建议您通过Web.Config将网站的会话超时修改为30分钟:
Session timeout is website based. You define that in Web.Config file.
You cannot have website session timeout as 20 min utes and a control in the website as 30 minutes timeout!
I would suggest you to modify the session timeout of the website as 30 min, via Web.Config:
<configuration>
<system.web>
<sessionState mode="InProc" cookieless="true" timeout="30"/>
</sessionState>
</system.web>
</configuration>
To read more about it, look here.[^]
您的基本面似乎不太清楚.
阅读以下内容:
在ASP.Net中浏览会话 [ ASP.NET会话状态概述 [
Your fundamentals doesn''t seem very clear.
Read these:
Exploring Session in ASP.Net[^]
ASP.NET Session State Overview[^]
Hope that helps! :thumbsup:
这篇关于如何设置文本框的会话超时期限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文