ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-windows
php-windows
[PHP-WIN] Cookies - IE6
by KMiller other posts by this author
Oct 17 2006 9:22PM messages near this date
Re: [PHP-WIN] Using PHP to Bind over LDAPS. | [PHP-WIN] Cokkies - IE6
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.

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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved