setcookie() in various browsers..
| From: | Chad Day | Date: | Fri, 07 Feb 2003 20:02:19 +0000 |
| Subject: | setcookie() in various browsers.. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-134780@lists.php.net to get a copy of this message | ||
This is with PHP 4.2 and register_globals off.
I am setting cookies and starting a session in the following fashion:
setcookie("EMAILADDR", $row[EMAIL], time()+2592000, '/', ".$dn");
where $dn = mydomain.com
I want the cookies accessible sitewide .. at www.mydomain.com, mydomain.com,
forums.mydomain.com, etc.
in IE 6.0, and NS 7.0, it seems this is being accomplished correctly.
In NS 4.8, the cookies are never even getting set. Can anyone tell me as to
why? I've been prodding around cookie docs and trying to find something
that works in all browsers, and a lot of people seem to have the same
question..
Thanks!
Chad