treenode中的会话超时 [英] session timeout in treenode
本文介绍了treenode中的会话超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hai everybody,
我正在处理会话超时问题。我的问题是如果会话超时那么页面应该重定向到登录页面。但我得到的是,我正在树节点的选项卡面板中打开登录页面。如何避免它?
解决方案
请在登录页面的标题内添加以下脚本标签。此脚本将始终在顶部框架中打开登录页面。
< script>
if ( window != window .top)top。 location .href = location .href;
< / script>
检测会话超时,并将用户重定向到您的登录/主页。
请参考以下链接:
检测会话超时并重定向到主页 [ ^ ]
检测ASP.NET会话超时 [ ^ ]
构建ASP.NET会话超时重定向控件 [ ^ ]
如何重定向到另一个页面时ASP.NET中的会话超时(当时为pa ges包含Ajax UpdatePanel) [ ^ ]
--Amit
Hai everybody,
I am working on session timeout issue.my problem is if session timeouts then the page should redirect to login page. but what i am getting is, i am getting the login page opened inside the the tab panel of a tree node. how to avoid it?
解决方案
Please add below script tag inside Header of Login Page. This script will open login page always in top frame.
<script> if (window != window.top) top.location.href = location.href; </script>
Detect the session timeout, and redirect user to your login/home page.
Refer the links below:
Detecting Session Timeout and Redirect to HomePage[^]
Detecting ASP.NET Session Timeouts[^]
Build an ASP.NET Session Timeout Redirect Control[^]
How to Redirect to Another Page when Session Timeout in ASP.NET (when pages contain Ajax UpdatePanel)[^]
--Amit
这篇关于treenode中的会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文