Weird domain seting in setcookie()

From: Date: Tue, 14 Jul 2009 15:31:56 +0000
Subject: Weird domain seting in setcookie()
Groups: php.general 
Request: Send a blank email to php-general+get-295368@lists.php.net to get a copy of this message
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)

« previous php.general (#295368) next »