|
Posted by elyob on 12/18/52 11:48
"Gordon Burditt" <gordonb.qmfj2@burditt.org> wrote in message
news:1277b3734l8qr5e@corp.supernews.com...
> >I want to test locally and can't get past my cookie protection, is this
>>right? It doesn't seem to work ...
>>
>>if ($_SERVER['REMOTE_ADDR']=="127.0.0.1") {
>> session_set_cookie_params(7200, '/', '.localhost');
>>} else {
>> session_set_cookie_params(7200, '/', '.domain.com');
>>}
>
> Some versions of IE insist (for some security levels) that you have
> a P3P privacy policy defined on your server for cookies to work.
> Google "p3p privacy policy" and you might want to choose a Microsoft
> site that discusses this.
Thanks Gordon, will look at this as it's something that I haven't really
considered. However, I am currently developing the area where the cookies
are being used. My issue is that I am unable to test locally as a cookie
isn't being set (I'm using firefox), however it works fine on the remote
server (i.e. .domain.com). I wasted a couple of hours yesterday mucking
about, beacuse I thought there was a problem with the MySQL server .. and it
was the cookie that was at fault.
Will my hack above allow me to test locally (no, is my current answer to
that), or is there another way of testing on localhost I haven't considered?
Thanks
Navigation:
[Reply to this message]
|