如何延长会话超时持续时间段? [英] How to extend session timeout duration period?

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

问题描述

我们已经制定了一个ASP.Net Web应用程序。在web.config文件中,我们已经设置了会话超时周期为60如下:

 <的sessionState模式=是InProc超时=60/>

但尽管如此,会话15 minutess内到期。我不想过期会话长达1小时。如何延长会话超时周期长达1小时?我需要您的建议。


解决方案

 应用程序池的工作进程默认空闲超时时间也设置为20分钟
存储会话状态的默认模式是在IIS进程

所以,你应该尝试更改应用程序池,S工作进程默认的超时

下面是的链接

We have developed an ASP.Net Web Application. In its web.config file, we have set the session timeout period is 60 as below:

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

But still, the session expired within 15 minutess. I don't want to expire the session up to 1 hour. How to extend the session timeout period up to 1 hour? I need all your suggestions.

解决方案

The application pool’s worker process default idle timeout is also set to 20 minutes
The default mode of storing session state is in the IIS process

So you should try to change the application pool,s worker process default time out

Here is the link.

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

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