cookies does not work under win xp + ie
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
Re: cookies does not work under win xp + ie
On Thu, 15 Feb 2007 17:40:36 +0100, comper <comper [at] 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
Re: cookies does not work under win xp + ie
> 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
Still without change, under Opera and Mozzilla works but under IE no.
I dont know why ...
Re: cookies does not work under win xp + ie
On Thu, 15 Feb 2007 18:09:45 +0100, comper <comper [at] centrum.sk> wrote:
>
>> 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
>
> Still without change, under Opera and Mozzilla works but under IE no.
> I dont know why ...
>
Perhaps a security feature of MSIE.
Could you install Fiddler, and give us the exact contents of the
SetCookie: header when requesting the page with MSIE?
--
Rik Wasmus
Re: cookies does not work under win xp + ie
On 15 Feb, 18:11, Rik <luiheidsgoe... [at] hotmail.com> wrote:
> On Thu, 15 Feb 2007 18:09:45 +0100, comper <com... [at] centrum.sk> wrote:
>
> >> 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
>
> > Still without change, under Opera and Mozzilla works but under IE no.
> > I dont know why ...
>
> Perhaps a security feature of MSIE.
>
> Could you install Fiddler, and give us the exact contents of the
> SetCookie: header when requesting the page with MSIE?
> --
> Rik Wasmus
are you using a FQDM or just a domain that looks like localhost or
mydevbox
cookies as per rfc should always use FQDN's - instead set the domain
to NULL and it should work then
Re: cookies does not work under win xp + ie
I tried all what you wrote, but with no effect. I really dont know
where the problem could be... Maybe something with domain, but how to
fix it?
Re: cookies does not work under win xp + ie
On 16 Feb, 11:04, "comper" <com... [at] centrum.sk> wrote:
> I tried all what you wrote, but with no effect. I really dont know
> where the problem could be... Maybe something with domain, but how to
> fix it?
i agree with rik, installing fiddler would at least tell you whether
the cookies were being sent to IE. After all if the server is sending
them, you have eliminated one of your suspects.
Re: cookies does not work under win xp + ie
maybe the problem is on viewing of cookie? i am using script
$webreg = getcookie("webreg");
function getcookie($name)
{
if (isset($_COOKIE[$name]))
return $_COOKIE[$name];
return FALSE;
}
i think its ok, opera and mozzilla get cookie, but IE no. what is ur
opinion?
Re: cookies does not work under win xp + ie
On 16 Feb 2007 05:54:33 -0800, in alt.php "comper" <comper [at] centrum.sk>
<1171634073.197297.54930 [at] v33g2000cwv.googlegroups.com> wrote:
>|
>| maybe the problem is on viewing of cookie? i am using script
>|
>| $webreg = getcookie("webreg");
>|
>| function getcookie($name)
>| {
>| if (isset($_COOKIE[$name]))
>| return $_COOKIE[$name];
>| return FALSE;
>| }
>|
>| i think its ok, opera and mozzilla get cookie, but IE no. what is ur
>| opinion?
I'd have a look at the Internet Options within IE to see if it is
blocking the cookies.
------------------------------------------------------------ ---
jnorthau [at] yourpantsyahoo.com.au : Remove your pants to reply
------------------------------------------------------------ ---
PHP » alt.php » cookies does not work under win xp + ie