SoFunction
Updated on 2025-03-10

P3P and cross-domain cookie access (read and set)

For example, if you want to visit B station, set a cookie on site A, you can do this:

1. Create a file below
Contents are:
Copy the codeThe code is as follows:

<script language="javascript" src="/?par="></script>

The following content is:
Copy the codeThe code is as follows:

<%
"P3P", "CP=CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"
("aaa").Domain = Request("par")
("aaa") = "This is the cookies set by accessing the file below"
%>

In this way, by accessing the files, you can set and modify the corresponding cookies in the domain, thus achieving the purpose of setting access to cookies across domains.