`

如何让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); 

个人感觉第三种比较好

 

分享到:
评论

相关推荐

    asp之让Session永不过期

    又有人说设session.timeout=99999。这种同样不行,session有最大时间限制。...还有就是用在要保持session的页里设隐藏iframe每隔一段时间(这个时间小于session.timeout的时间)把刷新一次frame里的空页面!实现方

    iframe嵌入链接本地环境正常,正式环境重定向到登录解决

    proxy_connect_timeout 10; proxy_read_timeout 60; proxy_pass http://127.0.0.1:80; } } ``` - `listen 443 ssl;`:指定监听端口为443,并启用SSL。 - `ssl_certificate` 和 `ssl_certificate_key`:指定...

    服务器session丢失

    1. **调整Session超时**:在`Web.config`中增加`timeout`属性的值,延长Session有效期。 2. **独立的应用程序池**:为每个网站分配独立的应用程序池,避免Session冲突。 3. **IIS设置**:在IIS中配置每个应用程序池...

    Nginx提高安全与性能的最好配置详解

    通过配置`ssl_session_cache` 和 `ssl_session_timeout`指令,可让浏览器和服务器之间重用之前的SSL/TLS会话,避免每次连接都进行完整的握手过程。 5. OCSP Stapling(在线证书状态协议):这是一种提升性能和安全...

    DWR.xml配置文件说明书(含源码)

    这有点向java中的import语句,多数类在使用之前需要引入,但引入了类并不意味着这些在使用,每个creator和converter需要有个id属性来允许以后进行引用. 配置文件的allow部分定义哪些类可以建立和转换,每个被准许的类都...

    https安全設定大全

    <sessionState cookieless="AutoDetect" mode="InProc" timeout="20" /> ~/Account/Login" timeout="20" cookieless="UseDeviceProfile" slidingExpiration="true" requireSSL="true" /> ``` 设置`requireSSL...

    Nginx服务器https配置的方法示例

    9. 超时设置:`ssl_session_timeout 10m;`指令设置SSL会话的超时时间。 10. 长连接设置:`keepalive_timeout 70;`指令设置长连接的超时时间。 11. Diffie-Hellman参数:`ssl_dhparam /data/secret/dhparam.pem;`...

    asp连接数据库代码实例

    response.write"查询的信息不存在或者已经删除!</font>" 'response.end else rs.absolutepage=page end if i=0 do while not rs.eof and i 'do while not rs.eof %> ("id")%> i=i+1 loop %> -----...

Global site tag (gtag.js) - Google Analytics