会话超时ASP.NET和身份验证 [英] Session timeout ASP.NET and authentication

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

问题描述

我有一些网站有身份验证过程,但是运行正常。但在新开发的网站中,超时太短。它在我的本地是正确的,但在发布后,它在不到五分钟后重定向到登录页面。我检查

I have some sites with authentication process, that works properly. But in new developed site, timeout is too short. it is correct in my local but after publish, it redirects to login page after less than five min. I check

<authentication mode="Forms">
  <forms loginUrl="~/Account/Login.aspx" timeout="200" slidingExpiration="true" />
</authentication>





这个



and this

<sessionState timeout="200"/>





我是什么尝试过:



我读了一些类似的问题并按照它们,更改超时值,更改slidingExpiration值和...但我无法解决问题。



What I have tried:

I read some similar questions and follow them, change timeout value, change slidingExpiration value and ... but i could not solve problem.

推荐答案





这个问题来自我的网络托管公司。他们更改了我的网站设置并解决了问题。
Hi,

This problem was from my web hosting company. They changed my site Settings and problem solved.


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

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