会话在Web服务器上的ASP.NET中超时 [英] Session times out in ASP.NET on web server

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

问题描述

我正在ASP.NET 4.0中开发一个Web应用程序。使用ASP.NET成员资格。

webapp在本地计算机上运行良好,但是当我在远程Web服务器上托管Web应用程序时,会话在大约1分钟内超时。因此,会员模块在超时后重定向到我的主页以获取任何页面请求。



我已经使用Cookies管理器测试过,我的远程站点的cookie不会过期。

IIS上的超时时间设置为默认值20分钟。





这是我的web.config: [已删除]

I am developing a web application in ASP.NET 4.0. using ASP.NET membership.
The webapp is running perfectly well on local machine, but when I host the web application on a remote web server, the session times out in around 1 min. The membership module thus redirects to my home page for any page request after timeout.

I have tested using Cookies manager, the cookies from my remote site does not expire.
Timeout period on IIS is set to default 20 minutes.


Here is my web.config: [removed]

推荐答案

您好,



尝试在浏览器中设置Cookie并从Cookie中分配值会话。



希望这会对你有帮助。
Hi,

Try to set cookies in your browser and assign values from cookies to session.

Hope this will help you.


这篇关于会话在Web服务器上的ASP.NET中超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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