pjoyce
10-09-2003, 05:40 AM
Hi all,
Some of my users are having trouble logging in, which I believe has to do with cookies and privacy settings. .NET forms authenticaion uses a cookie and by default IIS6.0 is set to high security which rejects cookies with no compact privacy policy. I've tried a few things to set this up, but to no avail. Has anybody else tried this? There isn't a huge amount of useful information on MSDN or GotDoNet or 4GuysFromRolla.
One piece of information is that you must add the P3P header item. I have tried this in code (Request</font id="blue">.AppendHeader("P3P"</font id="red">,"DEM NOM..."</font id="red">)) in the OnLoad() event, but when I turn Trace on it doesn't appear to be there. I have tried just adding a header "MyHeader", and that doesn't show up. I suspect I am doing it at the wrong point, either too early or too late.
Does anybody have any experience either with P3P Compact policies in .NET, Forms Authentication or adding cusotme headers? anything would be appreciated.
BTW, DiscountAsp.net exhibits this same behaviour. If you set your browser privacy settings to high, you can't log in to the control panel.
Thanks,
Peter.
Some of my users are having trouble logging in, which I believe has to do with cookies and privacy settings. .NET forms authenticaion uses a cookie and by default IIS6.0 is set to high security which rejects cookies with no compact privacy policy. I've tried a few things to set this up, but to no avail. Has anybody else tried this? There isn't a huge amount of useful information on MSDN or GotDoNet or 4GuysFromRolla.
One piece of information is that you must add the P3P header item. I have tried this in code (Request</font id="blue">.AppendHeader("P3P"</font id="red">,"DEM NOM..."</font id="red">)) in the OnLoad() event, but when I turn Trace on it doesn't appear to be there. I have tried just adding a header "MyHeader", and that doesn't show up. I suspect I am doing it at the wrong point, either too early or too late.
Does anybody have any experience either with P3P Compact policies in .NET, Forms Authentication or adding cusotme headers? anything would be appreciated.
BTW, DiscountAsp.net exhibits this same behaviour. If you set your browser privacy settings to high, you can't log in to the control panel.
Thanks,
Peter.