Re: Cookie Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/1/17 PHP <php_list@xxxxxxxxxxxxxx>

> Hi,
> I am trying to get a cookie to set in Internet Explorer 7, I have tried
> several different setcookie() configurations, this is the latest.
> Yes, I read the manual and the user notes, but can't find anything specific
> about the different security levels in IE.
>
> $szCookieName = "MyCookie";
> $nID = 2;
> $expireTime = 60*60;
>
> setcookie($szCookieName, $nID, time()-$expireTime,"/",www.mysite.com
> ,false);


   is there any reason that you set the expire in the past? That is usually
used to delete a cookie, not set it. I had many problems with IE in general,
but cookies were never a problem.


>
>
> However, they all work, only if I have the Privacy slider set to low in
> IE's options.
> As soon as I go up to medium, it will not work.
>
> And it works fine with firefox.
>
> The only difference I can see is that Medium Security adds the rule:
>
> Restricts first-party cookies that save information that can be used to
> contact you without your implicit consent.
>
> All I am storing is an integer value, why is IE seeing that as information
> that can contact you?
>
> Thanks for any help.
>
> Chris




-- 
Torok, Alpar Istvan

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux