在实时服务器上工作时,会话已过期 [英] Session is getting expired while working on live server

查看:87
本文介绍了在实时服务器上工作时,会话已过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们..

我的应用程序会话已经过期,它正在重定向到登录页面,这只是在实时服务器上唠叨。但在本地机器上它工作正常。我还在我的应用程序中检查了所有会话。请建议我背后的区域应该是什么。





- 我还在IIS中设置了会话超时属性,但是在点击按钮,链接等工作时它仍会过期。 。

Hi friends..
My application session is getting expired and it is redirecting to login page this is only happing on live server. But in local machine it is working fine. I also checked all session in my application. Please suggest me what should be region behind it.


--I also set session timeout property in IIS still it is geting expire while working such as clicked on buttons,links...

推荐答案

通常,实时服务器上的会话TimeOut比我们在本地计算机上的会话数要少。您可能需要在服务器上增加会话超时。



类似类型的问题在下面的线程中讨论。

意外的会话超时 [ ^ ]
Usually session TimeOut on live servers is comparatively is less than what we have on local machine. You may need to increase session Timeout on server.

Similar type of problem is discussed on below thread.
Unexpected session Timeout[^]


超时时间通常约为20分钟..但我相信在不同的服务器上有所不同。

在< system.web>中尝试此操作web.config文件中的代码块 -



The timeout period is normally around 20 mins .. but varies on different servers i believe.
Try this within the <system.web> code block in web.config file -

<authentication mode="Forms">
    <forms loginUrl="UnAuthorized.aspx" defaultUrl="home.aspx" timeout="300" cookieless="UseCookies"/>
</authentication>


这篇关于在实时服务器上工作时,会话已过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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