session过期时调到登录页,要在登录页面加入下面的JS。

<script language="JavaScript">
if (window != top)
top.location. location.href;
< /script>