RE: Weird domain seting in setcookie()

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

 



From: Michelle Konzack
> 
> 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?

In Firefox 3.0 under Tools->Options->Privacy, uncheck "Accept
third-party cookies".

Bob McConnell

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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