Re: Making coockies valid for multiple domains possible?
| From: | Pavel Janda | Date: | Mon, 12 Jan 2004 09:25:28 +0000 |
| Subject: | Re: Making coockies valid for multiple domains possible? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174296@lists.php.net to get a copy of this message | ||
> Someone correct me if I'm wrong, but if you set this in your php.ini or
with
> session_set_cookie_params() to server.com, it's valid across any sub
> domains, whereas if you set it to de.server.com, it would only be valid in
> the de.server.com sub domain.
>
> Or possibly try *server.com. I havn't played with this, since I only use
> cookies when I manually set them, not for sessions.
As written on http://cz.php.net/manual/en/function.setcookie.php
"server.com" should be enought, bud it's recommended to use
".server.com"...
PJ
>
>
> Hope this helps,
>
> Jake