Cookies - IE6

From: Date: Wed, 18 Oct 2006 04:21:44 +0000
Subject: Cookies - IE6
Groups: php.windows php.windows 
Request: Send a blank email to php-windows+get-27245@lists.php.net to get a copy of this message
I've spent an enormous amount of time trying to figure this out to no avail. Firefox accepts cookies, no problem. IE6 accepts only the session cookie but refuses to acknowledge a screen_res cookie. I've looked over the config in IE over and over, set it to allow all cookies but it still refuses. Moreover, the an xmlhttp request that sets a session variable won't work in IE as well. I'm setting the cookie thus: snippet... $screen_res = ($_COOKIE['screen_res']) ? $_COOKIE['screen_res'] : $_SESSION['screen_res']; switch ($screen_res) { case '1024x768': $this->siteResStyle=$config->getPath('styles') . '/1024x768.css'; break; case '1280x1024': $this->siteResStyle=$config->getPath('styles') . '/1280x1024.css'; break; default: $this->siteResStyle=$config->getPath('styles') . '/1024x768.css'; } $domain = $this->getDomain(); // Set expiration (30 days) $expire = time() + (86400*30); // Set the cookie setcookie('screen_res', "{$_SESSION['screen_res']}", $expire, '/', $domain,0,0); I've gone so far as to establish a valid p3p profile just to cover that possiblity as well. Again, Firefox is perfect! Any help, ideas welcome. -km -- View this message in context: http://www.nabble.com/Cookies---IE6-tf2464072.html#a6869199 Sent from the Php - Windows mailing list archive at Nabble.com.

« previous php.windows (#27245) next »