References
1. causes and solutions for loss of cookies and sessions caused by frameset
Http://blog.csdn.net/zl_c/article/details/1742775
2. Use frame to pay attention to session traps
Http://blog.csdn.net/sunyujia/article/details/2574006
3 IFRAME: solution to session loss in Frame
Http://funjackyone.iteye.com/blog/123290
4. Session loss caused by using iframe or frameset in IE
Http://blog.sina.com.cn/s/blog_474cf12b0100hcoi.html
When the framework is used to call pages under different domain names, the cookies and sessions on the pages under this domain are lost. Cause: Based on ie6.0's W3C support for the cookie p3p protocol, the framework is used to call pages in different domains. By default, ie will automatically disable cookies in this domain, therefore, cookies and sessions are lost.
Solution: add the Response Header validation information to the JSP page of the frame call.
Java code
- <%
- Response. setheader ("p3p", "cp = CaO PSA our ");
- %>
The simplest way is to set it in IIS:
Management tool --> select a website --> properties --> HTTP header, add an HTTP Header
Enter the header name: p3p
Input header content: Cp = CaO PSA our
The image is as follows:
In the filter:
Java code
- (Httpservletresponse) Response). setheader ("p3p", "cp = CaO PSA our ");
- Chain. dofilter (request, response );