note 35611 added to function.setcookie
| From: | sean at loginscreen dot com | Date: | Mon, 08 Sep 2003 11:22:30 +0000 |
| Subject: | note 35611 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-55789@lists.php.net to get a copy of this message | ||
To anyone who knows this answer ... could you please email me using the address:
sean@loginscreen.com :
I am trying to set a cooking for multiple domain names all at once, so users can browse between
sites seamlessly ...
Does anyone know how to do this? ...
I tried:
<?
setcookie("cookiename", $value, time() +3600 , "/", ".domain1.com");
setcookie("cookiename", $value, time() +3600 , "/", ".domain2.com");
?>
.... and it didn't work. Could it be because you have to actually be setting this cookie from
the domain you want to use it on? Is there any way around this?
Thanks,
Sean
sean@loginscreen.com
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35611
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35611&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35611&report=yes