会话维护在配置文件中 [英] Session maintain in config file

查看:69
本文介绍了会话维护在配置文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

为了维持会话,我将这一行放在

Hi all,

To maintain session i am putting this line

<sessionState mode="InProc" timeout ="60"></sessionState>



我正在使用IIS7托管网站,我需要做其他任何设置来保持60分钟的会话吗?

请帮帮我!!!

预先感谢,
Subbu



I am using IIS7 for hosting the website is any other setting i need do for maintaining the session for 60 minutes?

Please help me!!!

Thanks in advance,
Subbu

推荐答案

要在IIS 7中指定超时,请设置连接超时

Right Clik website-->manageWebsite-->AdvancedSettings-->Connection Limits--> Connection Time out in seconds.
这将解决您的问题.
To specify timeout in IIS 7 set Connection Time out

Right Clik website-->manageWebsite-->AdvancedSettings-->Connection Limits--> Connection Time out in seconds.
This will solve your problem.


您可能希望在IIS7上的网站选项"选项卡上修改会话状态" ...

http://istanbul-host.com/images/s2.png [
You might want to modify "Session State" on your website options tab as well on IIS7...

http://istanbul-host.com/images/s2.png[^]


以这种方式添加...

Add this way...

<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20"/>


这篇关于会话维护在配置文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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