Cokkies - IE6

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

 



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/Cokkies---IE6-tf2464072.html#a6869199
Sent from the Php - Windows mailing list archive at Nabble.com.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux