即使会话没有超时也重定向到登录页面 [英] Redirecting to login page even session havent time out

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

问题描述



我的Web应用程序在这里遇到问题.我将sessionstate超时设置为15分钟,并将表单超时设置为15分钟,同时在表单超时中,它将页面重定向到登录页面;

Hi,

I''m having a problem here with my web application. I set the sessionstate timeout to 15 minutes and form timeout for 15 minutes as well where in form timeout,it will redirect the page to login page ;

<forms loginUrl="Login.aspx" slidingExpiration="false" timeout="15"/> 





<sessionstate timeout="15" cookieless="false" /> 



没错,它应该仅在会话结束(超时)后才将页面重定向到登录页面.但是我不明白为什么即使在会话超时结束之前也将页面重定向到登录页面.这使用户无法再次登录,因为该用户已经登录(会话没有结束).

我正在使用iis 7.5

我在这里错过了什么吗?有什么想法吗?



By right,it should only redirect the page to login page only after the session ends (timeout).But i dont understand why the page is redirected to login page even before the session timeout ends.This makes user unable to login again because the user is already logged in (session havent end).

I m using iis 7.5

Do i missed something here?Any ideas guys?

推荐答案

尝试一下:
Try this:
<sessionstate timeout="15" cookieless="false" mode="InProc" /> 


您应该会看到以下内容:
http://stackoverflow.com/questions/1855218/membership-timeout-and-session-timeout [^ ]

如果仍然遇到相同问题,请告诉我.

问候,
爱德华


You should see this one:
http://stackoverflow.com/questions/1855218/membership-timeout-and-session-timeout[^]

Please let me know if you still encounter the same.

Regards,
Eduard


这篇关于即使会话没有超时也重定向到登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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