Weird domain seting in setcookie()

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

 



Hello,

on two websites I have encountered that cookies are not working properly
and are accesibel from other subdomains which I do not  want.  The  line
is:

setcookie('AdminOnCrack', $drug, $timeout, '/', $_SERVER['HTTP_HOST']);

but the "domain" is always prefixed with a ".".

OK, now I have tested it using:

setcookie('AdminOnCrack', $drug, $timeout, '/', 'myspace.tdwave.net');

but with the same problem. I do not want that the cookies are  available
in <*.myspace.tdwave.net>.

Any suggestions?

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator

-- 
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