note 35611 rejected from function.setcookie by ali
| From: | ali@php.net | Date: | Mon, 08 Sep 2003 12:48:27 +0000 |
| Subject: | note 35611 rejected from function.setcookie by ali | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55794@lists.php.net to get a copy of this message | ||
Note Submitter: sean@loginscreen.com
----
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