Re: Cookie Question
| From: | PHP | Date: | Sat, 17 Jan 2009 20:07:50 +0000 |
| Subject: | Re: Cookie Question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-286565@lists.php.net to get a copy of this message | ||
Oops, copy and paste error, that is the cookie I was using to delete.
The one I am using to set is acutally:
setcookie($szCookieName, $nID, time()+$expireTime,"/","www.mysite.com",false);
2009/1/17 PHP <php_list@ibcnetwork.net>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