Class P3PUtil
P3P is (was) a standard for describing policies for websites http://www.w3.org/P3P/details.html IE 6-8? uses those headers for determining if cookies should be accepted when a page is loaded inside an iframe (depending on security level) This class tries to address this problem by inserting an acceptable header that allows ie to accept headers.
Inheritance
Inherited Members
Namespace: ImageVault.Common
Assembly: ImageVault.Common.dll
Syntax
public static class P3PUtil
Remarks
The standard seems to not be in use anymore, a report states many sites that has incorrect policies or missing policies. http://www.cylab.cmu.edu/files/pdfs/tech_reports/CMUCyLab10014.pdf More information can also be found http://stackoverflow.com/questions/389456/cookie-blocked-not-saved-in-iframe-in-internet-explorer http://www.p3pwriter.com/LRN_111.asp
2013-10-16 dan: Created
Methods
AddP3PHeader(HttpResponse, String)
Adds a P3P header suitable for ImageVault
Declaration
public static void AddP3PHeader(HttpResponse response, string policyRef = "/w3c/p3p.xml")
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpResponse | response | The response to add the header to |
System.String | policyRef | The relative url for the policy ref document. If omitted /w3c/p3p.xml will be used. |
Remarks
This is needed to allow IE keep cookies in iframes