后台filter检查Session过期跳转

若是页面在iframe里,不能解决登陆页面跳出iframe框架的问题。那么可以在login.jsp页面的<head>与</head>之间加入以下代码:

1 <script language="JavaScript"> 
2 if (window != top) 
3 top.location.href = location.href; 
4 </script>
View Code

 

posted on 2015-03-20 19:47  dobestself_994395  阅读(238)  评论(0)    收藏  举报