Reply to Re: cookies does not work under win xp + ie

Your name:

Reply:


Posted by Rik on 02/15/07 16:53

On Thu, 15 Feb 2007 17:40:36 +0100, comper <comper@centrum.sk> wrote:

> I have problem:
> function setcookies does not work under Xp + IE
> i wrote
>
> setcookie('name', '$value', false, '/', 'false', 0);
>
> its all in php script and nothing, no cookies sent. But only on IE, i
> start page on Opera or Mozzilla and it works, only on IE no.
> Dont know anyone reason?
> Please help, thanks

The string 'false' is no DNS... expire should be an integer, here it's
false cast to 0, which PHP forgives you. I suspect (haven't checked it)
that Opera & Mozilla repair your broken domain, and MSIE doesn't.

What about:
setcookie ($name,$value,0 ,'/');
Or if you want to be explicit:
setcookie ($name,$value,0 ,'/',$_SERVER['HTTP_HOST'],false);
--
Rik Wasmus

[Back to original 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

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