只要在登录页面中加上这段脚本就解决问题了。session过期后登录页面嵌套在框架中问题的解决方案
<script language="javascript"> if (top != window) top.location.href = window.location.href; </script>
转自: http://blog.csdn.NET/qin87/article/details/1728716
<script language="javascript"> if (top != window) top.location.href = window.location.href; </script>