View Single Post

  #2 (permalink)  
Old 05-24-2006
Gordon Burditt
 
Posts: n/a
Default Re: session_set_cookie_params on localhost

>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.

Gordon L. Burditt
Reply With Quote