Solve the problem of not reading and writing cookies across domain access in IE browser

Source: Internet
Author: User

Let's say a nested b

Workaround:
The first is simple:
Set System B as a trusted site.
The second type:
IE Set Privacy policy: In the Internet option-> Privacy-> Advanced, the "Replace automatic cookie Processing" option, and "First party Cookies" and "Third-party cookies" are set to accept the following figure:
The third type:
increase the P3P protocol on the head of the response;
Java: Add a filter, in the Dofilter section:
Java code

The code is as follows Copy Code
HttpServletResponse res = (httpservletresponse) response;
Res.setheader ("P3P", "Cp=cao PSA our");

P3P is what, do what use, Google great God will tell very clear, here will not say;
Header information to increase the P3P protocol, through the Google great God can also find a lot of articles;
Here is one thing, this P3P setting is placed in the system of the referenced page (that is, the B system above), this should remember.

PHP Solution:

The code is as follows Copy Code
@header (' p3p:cp= "CAO COR cura ADMa DEVa our IND ONL COM DEM PRE"];

No related content found

Asp. NET:


Response.appendheader ("P3P", "Cp=cao PSA our");

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.