会话超时根据远程Web配置不起作用 [英] Session timeout not working according to web config in remote

查看:128
本文介绍了会话超时根据远程Web配置不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<system.web>
    <sessionState mode="InProc" cookieless="false" timeout="1440" />





如上所述web.config,该项目在本地主机中正常工作。在远程,超时是在20分钟结束时发生的。为什么会这样?如何才能在远程修复?



As per above in web.config, the project works correctly in local host. In remote, the timeout is happening when 20 minutes is over. Why is this so? How could it be rectified at remote?

推荐答案

这是由于默认的InProc超时是20分钟,它是在IIS中设置的,

转到ISS mngr>默认网站>选择您的网站>选择会话超时选项并选择InProc,Serververstate,Sqlserver或自定义并设置间隔,它会在WebConfig中自动更新我们的超时部分
this is due to the default InProc timeout is 20min , it is set in IIS ,
go to ISS mngr > default site > select your site > select session time out Option and choose InProc,Serververstate ,Sqlserver Or custom and set the interval ,it automatically Update our time out section in WebConfig


上传web.config文件后重启IIS服务器使您的web.config更改生效。试试。 :)



更新



登录到远程IIS服务器然后单击开始单击运行键入 IISReset ,然后单击确定。
After uploading the web.config file restart the IIS server for taking effect your web.config changes.Try that. :)

UPDATE

Log-in to your remote IIS server then Click Start, click Run type IISReset, and then click OK.


请参阅以下链接:

会话超时问题

为什么 - 会话 - 超时 - 不工作



希望它有所帮助:)
See the link below:
session-timeout-problem
Why-Session-Timeout-is-not-working

Hope it helps :)


这篇关于会话超时根据远程Web配置不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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