session过期让登录页面跳出iframe的方法

在登录页面添加如下js

<script type="text/javaScript"> 
if (window != top) 
top.location.href = location.href; 
</script> 

 

posted @ 2014-04-26 14:48  lxricecream  阅读(165)  评论(0)    收藏  举报