首页 > 其他 > 详细

iframe session过期跳转到登陆页面

时间:2016-07-10 23:02:23      阅读:282      评论:0      收藏:0      [点我收藏+]

在login.jsp中添加js:

if(window !=top){  
	    top.location.href=location.href;  
	} 


<script type="text/javascript">
if (window.parent != window) {
	window.parent.location.href = window.location.href;
}
</script>

  

iframe session过期跳转到登陆页面

原文:http://www.cnblogs.com/james-roger/p/5658623.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!