越来越多的应用程序池会话超时不工作 [英] Increasing application pool session time out not working

查看:366
本文介绍了越来越多的应用程序池会话超时不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目,我需要保持720分的会议还我使用的设置1440窗体身份验证(会话* 2),当我主持这个IIS会话超时成了默认的20分钟,我改变应用程序池
空闲超时(分钟)720。这是由很多的建议,随后还会话超时20分钟。我不知道为什么发生这种情况后发生的事情。我使用IIS(7.5)。任何一个请帮助我。它已超过一天,我通过互联网搜索,我找不到任何合适的回答
注:Forms身份验证工作得很好。

In my project, i need to hold the session for 720 minutes also i am using forms authentication which is set 1440 (session*2) and when i am hosting this into IIS the session time out became default 20 minutes so i changed the application pool Idle Time-out(minutes) to 720 . Which is suggested by many , then also the session time out is happening after 20 minutes .I dont know why this is happening . I am using IIS (7.5). Any one please help me. Its been more than one day I am searching through internet ,I cant find any proper answer Nb: Forms authentication works just fine

推荐答案

网站查看Session.Timeout将工作只有当它是小于的应用程序池会话超时值;因为每当达到应用程序池会话超时值,即特定的应用程序池将被重新启动。我们有两件事情:应用程序池,有它自己的会话超时值,和网站,也有它的会话超时值。微软已经给参数查看Session.Timeout改变网站会话超时值。没有应用程序会话超时值。我们必须明白一件事在这里:我们必须确保应用程序池会话超时值始终不是网站会话超时值越大;只有意志查看Session.Timeout参数工作;否则,它不会。其理由如下:每当达到应用会话超时,应用程序池将被重新启动,并且,因为网站参数的那查看Session.Timeout的行不通

Website Session.Timeout will work only when it is less than the application pool session timeout value; because whenever the application pool session timeout value is reached, that particular application pool will be restarted. We have two things: the application pool that has its own session timeout value, and the web site that also has its session timeout value. Microsoft has given the parameter Session.Timeout to change the website session timeout value. not the application session timeout value. We have to understand one thing here: we have to make sure that the application pool session timeout value is always greater than the website session timeout value; only the will the Session.Timeout parameter work; otherwise, it won't. The reason is as follows: whenever the application session timeout is reached, the application pool will be restarted and because of that Session.Timeout of the website parameter won't work.

请检查这些点,并尝试

  Application Pool => Advanced Settings => Process Model => Idle Time-out(minutes)
    Sites => whatever web needs to be set => ASP => Session Properties => Time-out     remember to Apply the change
    Sites => whatever web needs to be set => Configuration Editor => system.web/sessionState => timeout    remember to Apply the change
    Sites => whatever web needs to be set => Configuration Editor => system.web/roleManager => cookieTimeout    remember to Apply the change

这篇关于越来越多的应用程序池会话超时不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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