在IE浏览器中iframe跨域访问cookie/session丢失的解决办法
来源:互联网 发布:linux下载ed2k链接 编辑:程序博客网 时间:2024/05/17 00:17
单点登录需要在需要进入的子系统B中添加一个类,用于接收A系统传过来的参数;
@Action(value = "outerLogin", results = { @Result(name = "redirect", type = "redirect", location = "${innerUrl}") }) public String outerLogin() { try { if (userName != null && userName.trim().length() > 0) { TPolicemen policemen = policeMenService.getPolicemenByJh(userName); if (policemen != null) { //获取当前登录用户所在IP String ipStr = CommonService.getIpAddr(this.request); policemen.setIpStr(ipStr); this.session.put(AuthInterceptor.USER_SESSION_KEY, policemen); response.setHeader("P3P", "CP=CAO PSA OUR"); innerUrl = outerUrl; return "redirect"; } else { loginStr = "用户名或者密码错误"; } } } catch (Exception e) { this.clientMessage(e.getMessage()); } return "login"; }
A系统中点击某个链接,url格式形如:
防止iframe跨域访问cookie/session丢失的解决办法是,在保存session后添加一段代码:即
response.setHeader("P3P", "CP=CAO PSA OUR");
- 在IE浏览器中iframe跨域访问cookie/session丢失的解决办法
- IE浏览器跨域访问iframe 中 Cookie/Session丢失解决方案
- PHP在iframe 中session跨域丢失的解决办法
- IE浏览器iframe跨域丢失Session问题
- iframe 跨域访问session/cookie丢失问题解决方法
- iframe 跨域访问session/cookie丢失问题解决方法
- 用P3P header解决IE下iframe跨域访问时候session丢失的问题
- IE中iframe跨域丢失Session问题 p3p
- IE中iframe跨域丢失Session问题
- IE中iframe跨域丢失Session问题 p3p
- IE中iframe跨域丢失Session问题(续 p3p)
- IFrame中Session丢失的解决办法
- IFrame中Session丢失的解决办法
- IFrame中Session丢失的解决办法
- IFrame中Session丢失的解决办法
- IFrame中Session丢失的解决办法
- IFrame中Session丢失的解决办法
- IFrame中Session丢失的解决办法
- 10个迷惑新手的Cocoa,Objective-c开发难点和问题
- Oracle --> ODAC 组件
- iOS 创建单例的两种方法
- CSS3 代码生成工具:Create CSS3
- Css+Div画圆
- 在IE浏览器中iframe跨域访问cookie/session丢失的解决办法
- Linux服务器下Can't connect to MySQL server on '' (10060) (转)
- 一次rman恢复的实验
- android开发中sqlite3 not found问题解决办法
- 了解常用的数据库就能了解现在以及未来数据库发展的趋势.2
- iframe用法 及 跨域访问问题
- 常用jQuery插件
- Solaris 10上为Oracle 11G安装设置内核参数
- u盘win7安装双系统