ASP.NET页面中使用了Iframe,当Session失效或者重新登陆时候,登陆页面出现了Iframe页面中,被框架嵌套了。为了避免这样的情况,在login.aspx中加入一段JS脚本:   
<script language="JavaScript" type="text/javascript">
if (window != top)
top.location.href = location.href; 
</script>
问题解决。