读书人

PHP session失灵 跳出 iframe

发布时间: 2012-12-19 14:13:14 作者: rapoo

PHP session失效 跳出 iframe

??? 在安全退出的方法中:

 <script type="text/javascript">  function dap(){      if (top.location !== self.location) {   //self:在相同的框架或窗口中载入目标文档  top:把文档载入包含该超链接的窗口,取代任何当前正在窗口中显示的框架top.location = "/admin/index.html";//跳出框架,并回到首页}  } </script>

?

??? 后面调用这个js就行了。

读书人网 >PHP

热点推荐