如何设置会话超时 [英] How to set session timeout

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

问题描述

在web.config文件中设置会话超时似乎不会产生任何影响
。任何解释或建议都将受到赞赏。

解决方案

这就是这样做的方法。


是什么让你认为它不起作用?


Geigho < IG ****** @ zeonchemicals.com>在消息中写道

news:0a **************************** @ phx.gbl ... < blockquote class =post_quotes>在web.config文件中设置会话超时似乎没有任何效果。任何解释或建议都将受到赞赏。



这将是这样做的方式。


是什么让你觉得它不起作用?


Geigho < IG ****** @ zeonchemicals.com>在消息中写道

news:0a **************************** @ phx.gbl ... < blockquote class =post_quotes>在web.config文件中设置会话超时似乎没有任何效果。任何解释或建议都将受到赞赏。



我正在使用基于表单的登录。我将超时设置为什么

值并不重要(例如,timeout =" 1",timeout =" 20",

timeout =" 120"等等),应用程序总是带我回到

大约20分钟之后没有

将页面发回服务器。


< sessionState mode =" InProc"

stateConnectionString =" tcpip = 127.0.0.1:42424"

sqlConnectionString =" data source = 127.0。 0.1;用户

id = sa;密码=" Cookie的= QUOT;真"超时= QUOT 1 QUOT; />

-----原始消息-----
这就是这样做的方式。

是什么让你认为它不起作用吗?

Geigho < IG ****** @ zeonchemicals.com>在消息中写道
新闻:0a **************************** @ phx.gbl ...

在web.config文件中设置会话超时不会
似乎有任何影响。任何解释或建议将
赞赏。





Setting session timeout in web.config file does not seem
to have any effect. Any explanation or suggestion will be
appreciated.

解决方案

That would be the way to do it.

What makes you think that it is not working?

"Geigho" <ig******@zeonchemicals.com> wrote in message
news:0a****************************@phx.gbl...

Setting session timeout in web.config file does not seem
to have any effect. Any explanation or suggestion will be
appreciated.



That would be the way to do it.

What makes you think that it is not working?

"Geigho" <ig******@zeonchemicals.com> wrote in message
news:0a****************************@phx.gbl...

Setting session timeout in web.config file does not seem
to have any effect. Any explanation or suggestion will be
appreciated.



I am using a form based login. It does not matter what
value I set timeout to (e.g timeout="1", timeout="20",
timeout="120", etc), the application always takes me back
to the login form after approximately 20 minutes of not
posting the page back to the server.

<sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;user
id=sa;password=" cookieless="true" timeout="1" />

-----Original Message-----
That would be the way to do it.

What makes you think that it is not working?

"Geigho" <ig******@zeonchemicals.com> wrote in message
news:0a****************************@phx.gbl...

Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.


.



这篇关于如何设置会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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