如何让session timeout 不显示在iframe里面

参考:http://www.webmasterworld.com/forum91/2831.htm

 

1. if (top!= self) top.location=self.document.location;

 

2. if(top.location!= document.location) top.location = document.location;

 

3.

if (top!= self) if (location) top.location.replace(self.location.href) else top.document.location.replace(self.document.location.href); 

个人感觉第三种比较好

 

你可能感兴趣的:(session)