iframe session过期跳转到登陆页面

在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>

  

posted on 2016-07-10 21:34  james-roger  阅读(120)  评论(0编辑  收藏  举报