的sessionState超时工作不工作、sessionState

2023-09-06 06:13:51 作者:何以长情

我已经设置了sesstionstate超时为60,即1小时。但是,用户仍然会得到20分钟后过期消息。

我们使用Windows Server 2008来承载asp.net应用程序。任何人都可以请告诉我为什么能在20分钟会话过期吗?

我使用的是Windows身份验证。下面是我的web配置:

 <的sessionState超时=60/>
 

解决方案

检查IIS会话量。它可以是从.NET会话量而变化。

web.config中的session配置

配置会话超时(IIS 7) 另请参见这个问题

  

默认情况下,会话过期时用户没有请求或刷新ASP应用程序页面20分钟

I've set the sesstionstate time out to be 60 i.e. 1 hour. But, users are still getting session expired messages after 20min.

we are using Windows Server 2008 to host the asp.net application. could anyone please tell me why could session expire in 20min please?

I'm using windows authentication. below is my web config:

<sessionState  timeout="60" />

解决方案

Check the IIS Session amount. It can be vary from the .NET session amount.

Configure Session Time-out (IIS 7) See also this question

By default, the session expires when the user has not requested or refreshed a page in the ASP application for 20 minutes