Re: Weird domain seting in setcookie()
| From: | Michelle Konzack | Date: | Tue, 14 Jul 2009 16:42:21 +0000 |
| Subject: | Re: Weird domain seting in setcookie() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295377@lists.php.net to get a copy of this message | ||
Hi Bob,
Am 2009-07-14 11:46:16, schrieb Bob McConnell:
> In Firefox 3.0 under Tools->Options->Privacy, uncheck "Accept
> third-party cookies".
What has this to do with the Webbrowser?
In the PHP manual it is written:
----[ url 'http://de.php.net/manual/en/function.setcookie.php'
]--------
<snip>
domain
The domain that the cookie is available. To make the cookie available on
all subdomains of example.com then you'd set it to '.example.com'. The .
is not required but makes it compatible with more browsers. Setting it
to www.example.com will make the cookie only available in the www
subdomain. Refer to tail matching in the » spec for details.
<snip>
------------------------------------------------------------------------
This mean, if I wan to have the COOKIE available in the subdomains
foo.myspace.tdwave.net
bar.myspace.tdwave.net
baz.myspace.tdwave.net
I have to use the domain ".myspace.tdwave.net" with a preceding DOT. But
this is not what I want because I want to have the COOKIE only available
in
myspace.tdwave.net
so, I have set the the domain explicit to "myspace.tdwave.net" which
should register the cookie as it is according to the PHP manual or not?
Thanks, Greetings and nice Day/Evening
Michelle Konzack
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack c/o Shared Office KabelBW ICQ #328449886
+49/177/9351947 Blumenstasse 2 MSN LinuxMichi
+33/6/61925193 77694 Kehl/Germany IRC #Debian (irc.icq.com)