即使超时时间设置为1440分钟,会话也会在20分钟内超时 [英] Session is getting timed out in 20 minutes even the timeout period is set to 1440 minutes

查看:61
本文介绍了即使超时时间设置为1440分钟,会话也会在20分钟内超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使超时时间设置为1440分钟,会话也会在20分钟内超时.

解决方案

 打开 IIS,在应用程序池上单击 >您的应用程序的 的应用程序池.
单击- >选择属性. 




随时随地在此处设置时间值

一篇不错的文章,希望对您有所帮助..

为什么Session.Timeout不适用于您的网站 [在web.config中使用超时,默认情况下也可以使用timepan--20分钟,而且timeout属性不能设置为对于进程内和状态服务器模式,此值大于525,601分钟(1年). 1.在Web配置文件中: < system.web > < sessionState =" 1440" / < 身份验证 =" 表单" < 表单 =" Default.aspx" 保护 全部" 超时 1440" 名称 .ASPXAUTH" 路径 /" 需要SSL =" slidingExpiration defaultUrl =" 无cookie =" enableCrossAppRedirects =" < /forms > < /authentication > < httpRuntime =" 2097151" executionTimeout > 43200" useFullyQualifiedRedirectUrl =" false" minFreeThreads 8" minLocalRequestFreeThreads =" appReq uestQueueLimit =" >/ > < /system.web > 2.如果您使用的是ASP.NET 2.0,则必须在IIS中签入. 打开IIS,单击应用程序池",为您的应用程序选择应用程序池. 右键单击,选择属性". 在性能"选项卡中,将空闲超时"设置为空闲.....分钟后关闭工作进程的所需分钟". 3.在IIS中,右键单击网站,然后选择属性". 在"HomeDirectory"选项卡中,单击配置",然后选择选项"选项卡,然后 设置会话超时:1440 4.在IIS中,选择"ASP.NET"选项卡,然后单击编辑配置". 选择StateManagement选项卡并设置Session timeout:1440和 会话状态模式:InProc模式. 最后,重新启动IIS. 现在检查会话超时. 问候


Prince Antony G


The session is getting timed out within 20 minutes even when the timeout period is set to 1440 minutes.

Open the IIS, click on the Application Pools, Select the Application pool for your application.
Right Click --> Select Properties.




set the time value here whatever u want


a good article, hope it will help you..

Why Session.Timeout is not working for your website[^]


:)


Use timeout in web.config, can also use timespan--20 minutes is default, also The timeout attribute cannot be set to a value that is greater than 525,601 minutes (1 year) for the in-process and state-server modes.

1.In Web Config File:
<system.web>
        <sessionState timeout="1440" />


<authentication mode="Forms">
            <forms loginUrl="Default.aspx" protection="All" timeout="1440" name=".ASPXAUTH" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="Home/Default.aspx" cookieless="UseDeviceProfile" enableCrossAppRedirects="false">
                </forms>
        </authentication>

        <httpRuntime maxRequestLength="2097151" executionTimeout="43200" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>

</system.web>

2.If you are using ASP.NET 2.0, use have to check in the IIS.
Open the IIS, click on the Application Pools, Select the Application pool for your application.
Right Click on that, Select Properties.
In the Performance tab, Set the idle timeout as your desired minutes for "shutdown worker processes after being idle for ..... minutes".
3.In IIS, Right click the web sites Select Properties.

In HomeDirectory tab ,Click the Configuration Select Options tab and

Set Session time out:1440

4.In IIS, Select the ASP.NET tab Click Edit Configuration

Select StateManagement tab and set Session timeout:1440 and
Session State Mode:InProc mode.

Finally  Restart the IIS.

Now check the Session Time out.

Regards


Prince Antony G


这篇关于即使超时时间设置为1440分钟,会话也会在20分钟内超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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