SET COOKIES WITHIN AN IFRAME ( Solved for IE 6,7,8)
Pranavjeet Mishra
UI Architect crafting seamless experiences for the last 12 years, one pixel at a time. AI Expert in LangChain and RAG. Good Expertise in AWS BEDROCK , OPEN AI , ANTHROPIC CLAUDE.
IE usually blocks cookies set from within an IFrame. If you require such cookies to be set, especially if you have advertisements or social networking plugins, you need to send a Platform for Privacy Preferences Project (P3P) header.
What Platform for Privacy Preferences Project (P3P) DO?
It allow user agents to recognize when hosts in different domains are owned by the same entity or entities acting as agents for one another. Modifications would allow user agents to more intelligently apply privacy preferences, addressing implementation issues .
create your p3p policy with IBM P3P editor
IBM has developed a downloadable P3P Policy Editor
www.p3ptoolbox.org/tools/resources1.shtm
- Create a compact privacy policy(CP) served via HTTP header
- an XML policy file, and an
- XML reference file.
If all checked, and the header is being sent properly, and IE can read the policy file.
Look for the comment in the .htaccess file
To the following code snippet:
p3p-element = policyref="/w3c/p3p.xml", directs the browser to send the specified reference to the full XML policy.
If looking actually store some data, such as email addresses and login cookies, then apply this:
P3P: CP=â€ALL ADM DEV PSAi COM OUR OTRo STP IND ONLâ€