RE: [PHP] Cookie for Netscape only?
| From: | Curtis, Lorenzo | Date: | Mon, 06 Nov 2000 16:57:09 +0000 |
| Subject: | RE: [PHP] Cookie for Netscape only? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-23917@lists.php.net to get a copy of this message | ||
Also remember that Cookies values are able to be set with
the SAME NAME in different directories... If you plan
on having a cookie used throughout the site, remember to
set it at the highest directory level.
setcookie("cookiename","value"); in
http://www.mysite.com/subfolder/setcookie.php
WILL NOT overwrite setcookie("cookiename","value"); in
http://www.mysite.com/setcookie.php
and they are each allowed to store their own value.
-----Original Message-----
From: Browse.co.uk [mailto:amir@browse.co.uk]
Sent: Monday, November 06, 2000 11:32 AM
To: Zach Hobbs
Cc: php-general@lists.php.net
Subject: Re: [PHP] Cookie for Netscape only?
I use this whenever I want to set a cookie:
$lifetime = time() + 86400 * 30;
setcookie ("name", $whatever, $lifetime,"/",".mydomain.com");
.... and it works in IE and NS. My guess is that IE is still reading an old
cookie and you need to get rid of it. I can only suggest that you delete
your cookies from c:windows/cookies and c:windows/temporary internet files
and try setting it again. alternatively, do a delete cookie page and try
again.
A.
----- Original Message -----
From: Zach Hobbs <zachhobbs@bigfoot.com>
To: <php-general@lists.php.net>
Sent: Monday, November 06, 2000 4:16 PM
Subject: [PHP] Cookie for Netscape only?
I'm setting a simple cookie with:
setcookie("id", $randval, time() + 14400,"/",".domain.com",0 );
Now, the function returns 1, but the cookie only gets set in Netscape. In
Internet Explorer the cookie is never set...this script used to work just
fine ( a few months back), but now it just doesn't work in IE! Any ideas on
possible problems?
Thanks,
Zach Hobbs
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net