Re: Weird domain seting in setcookie()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)

<<attachment: signature.pgp>>


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux