在主页面使用frameset的框架中,如果不处理,会出现退出登录和页面session失效时,页面局部调转到登陆页面的现象。
如果要页面集体跳转,需要加上特殊处理。
在登陆页面中加入以下js:
if (top.location != self.location){
top.location=self.location;
}
frameset的重定向问题即解决了。
转载于:https://www.cnblogs.com/Jasong/p/5231483.html