You are here: Re: session_set_cookie_params on localhost « PHP Programming Language « IT news, forums, messages
Re: session_set_cookie_params on localhost

Posted by Gordon Burditt on 12/18/63 11:48

>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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация