会话超时问题 [英] Session Timeout Problem

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

问题描述

在我的asp.net应用程序中运行在Server2003上的web.config有这个

条目:< sessionState mode =" InProc" timeout =" 40"。

在IIS中,我的网站的asp.net状态管理超时设置为40。

在IIS中,虚拟目录配置设置设置为40 。


申请时间仍然超过20分钟。


我还能做什么?


-

问候,

Gary Blakely

解决方案

设置页面加载超时,看看是否有帮助。


-

问候,

Alvin Bruney

- -------------------------------------------------- -

无耻的作者插件

Excel的Excel Services即将推出...
https://www.microsoft.com/MSPress/books/10933.aspx

OWC Black预订 www.lulu.com/owc

专业版VSTO 2005年 - Wrox / Wiley

G aryDean" < Ga ****** @ newsgroups.nospamwrote in message

news:eG ************** @ TK2MSFTNGP03.phx.gbl ...


在我的asp.net应用程序中运行在Server2003上的web.config有这个

条目:< sessionState mode =" InProc" ; timeout =" 40"。

在IIS中,我的网站的asp.net状态管理超时设置为40。

在IIS中,虚拟目录配置设置设置为40 。


申请时间仍然超过20分钟。


我还能做什么?


-

问候,

Gary Blakely



您可能已经将asp.net配置为在闲置20分钟后关闭。

这会导致循环丢失所有会话数据。


如果您使用inproc会话,你有时会因为
回收而丢失会话数据,所以你的网站应该编码来处理这种情况。


- 布鲁斯(sqlwork.com) )
GaryDean写道:


在我的asp.net应用程序中运行在Server2003上的web.config有这个

条目:< sessionState mode =" InProc" timeout =" 40"。

在IIS中,我的网站的asp.net状态管理超时设置为40。

在IIS中,虚拟目录配置设置设置为40 。


申请时间仍然超过20分钟。


我还能做什么?


嗨Gary,


如你所说,你曾经使用过三个会话设置,那么

你现在使用的实际会话模式,inproc one?我建议你创建一个

简化的应用程序并使用inproc会话来验证行为。


此致,


Steven Cheng


Microsoft MSDN在线支持主管

该帖子按原样提供。没有保证,也没有授予任何权利。


The web.config in my asp.net application, running on Server2003, has this
entry: <sessionState mode="InProc" timeout="40".
In IIS the asp.net State Management timeout setting is 40 for my website.
In IIS the virtual directory configuration setting is set to 40.

The application still timesout at 20 minutes.

What else can I do?

--
Regards,
Gary Blakely

解决方案

set the timeout on page load, see if that helps.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
"GaryDean" <Ga******@newsgroups.nospamwrote in message
news:eG**************@TK2MSFTNGP03.phx.gbl...

The web.config in my asp.net application, running on Server2003, has this
entry: <sessionState mode="InProc" timeout="40".
In IIS the asp.net State Management timeout setting is 40 for my website.
In IIS the virtual directory configuration setting is set to 40.

The application still timesout at 20 minutes.

What else can I do?

--
Regards,
Gary Blakely



you probably have asp.net configured to shutdown after 20 mins of idle.
this causes a recycle which loses all session data.

if you use inproc session, you will sometimes lose session data due to a
recycle, so your site should be coded to handle this case.

-- bruce (sqlwork.com)

GaryDean wrote:

The web.config in my asp.net application, running on Server2003, has this
entry: <sessionState mode="InProc" timeout="40".
In IIS the asp.net State Management timeout setting is 40 for my website.
In IIS the virtual directory configuration setting is set to 40.

The application still timesout at 20 minutes.

What else can I do?


Hi Gary,

As you mentioned that you''ve used three session setting, then what''s the
actual session mode you use now, inproc one? I suggeset you create a
simplified application and use inproc session to verify the behavior.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.


这篇关于会话超时问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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