会话超时。 [英] Session Timeout.

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

问题描述

朋友,


我们有一个简单的应用程序,它有登录页面,用户登录它

并输入他们的联系方式和所有其他内容。它正在工作

罚款。现在我们已经迁移到新的Windows 2003服务器。页面工作

但它每5分钟刷新一次并返回login.aspx页面。

如何解决这个问题。


感谢您的帮助。


K

Friends,

We have a simple application which has login page, users login to it
and enter their contact details and all other stuff. It is working
fine. Now we have moved to new windows 2003 server. The page works
but it gets refreshed every 5 mintues and goes back to login.aspx page.
How do I fix this.

Thanks for any help.

K

推荐答案

在您的Web会话文件将会话延长到60分钟,例如:


< sessionState cookieless =" UseCookies"模式= QUOT;是InProc"超时= QUOT; 60" />


但是在

< system.web>之间添加它。 < /system.web>

-

Bishoy George
bi ****@bishoy.com

20102550399


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


" Sai" <ク****** @ gmail.com>在消息中写道

news:11 ********************* @ u72g2000cwu.googlegro ups.com ...
Add this in your Web.config file to elongate Session to 60min for example:

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

but add it between
<system.web> </system.web>
--
Bishoy George
bi****@bishoy.com
20102550399

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

"Sai" <ku******@gmail.com> wrote in message
news:11*********************@u72g2000cwu.googlegro ups.com...
朋友,

我们有一个简单的应用程序,它有登录页面,用户登录它并输入他们的联系方式和所有其他东西。它工作正常。现在我们已经迁移到新的Windows 2003服务器。页面工作
但它每5分钟刷新一次并返回login.aspx页面。
我该如何解决这个问题。

感谢您的帮助。

K
Friends,

We have a simple application which has login page, users login to it
and enter their contact details and all other stuff. It is working
fine. Now we have moved to new windows 2003 server. The page works
but it gets refreshed every 5 mintues and goes back to login.aspx page.
How do I fix this.

Thanks for any help.

K



没有没帮助。同样的事情再次发生。

no that did not help. same thing is happening again.


您的页面中是否有代码重定向到您的登录页面?听起来好像

您的会话超时并且您的代码正在重新发布。在session_end事件处理程序中写一些

代码来转储带有时间戳的文件

告诉你会话何时死亡。你可以从那里出问题。


-

________________________

热烈的问候,

Alvin Bruney [MVP ASP.NET]


[无耻作者插件]

OWC使用.NET的黑皮书
www.lulu.com/owc ,亚马逊

专业版VSTO.NET - Wrox / Wiley 2006

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


" Sai" <ク****** @ gmail.com>在消息中写道

news:11 ********************** @ i40g2000cwc.googlegr oups.com ...
Do you have code in your page to redirect to your login page? Sounds like
your session is timing out and your code is kicking in to repost. Write some
code in your session_end event handler to dump a file with a time-stamp to
tell you when the session is dying. You can trouble-shoot from there.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Professional VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Sai" <ku******@gmail.com> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...
没有没有帮助。同样的事情再次发生。
no that did not help. same thing is happening again.



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

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