在asp.net c中会话超时时自动重定向到登录页面# [英] automatic redirecting to login page when session time out in asp.net c#
本文介绍了在asp.net c中会话超时时自动重定向到登录页面#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
plz帮助我找到会话超时并在会话时间结束时自动重定向到登录页面。
plz help me finding the session time out and automatic redirecting to the login page when session time is out.
推荐答案
在这里查看我的解决方案...试一试......如果它解决了你的问题..
会话超时后重定向到登录页面 [ ^ ]
另见这些..
http://forums.asp.net/t/1767976.aspx/1 [ ^ ]
http://www.c-sharpcorner.com/Blogs/9758/ [ ^ ]
http://csharpdotnetfreak.blogspot.com/2008/11/detecting-session-timeout-and-redirect.html [ ^ ]
See my solution here...try it...if it solve your problem..
Redirect to login page after session time out[^]
Also see these..
http://forums.asp.net/t/1767976.aspx/1[^]
http://www.c-sharpcorner.com/Blogs/9758/[^]
http://csharpdotnetfreak.blogspot.com/2008/11/detecting-session-timeout-and-redirect.html[^]
在web.config文件中输入requiressl =false然后它可以工作
< system.web>
< httpCookies httpOnlyCookies =truerequireSSL =falselockItem =true/>
put requiressl="false" in web.config file then it works
<system.web>
<httpCookies httpOnlyCookies="true" requireSSL="false" lockItem="true"/>
这篇关于在asp.net c中会话超时时自动重定向到登录页面#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文