Re: setcookie

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

 



Randy Johnson wrote:
setcookie( "sess_key",$key,0,"/","." . str_replace( "www","",$_SERVER["SERVER_NAME"] ),0 );


Does that look right?

No.

if $_SERVER["SERVER_NAME"] == 'www.domain.com'

"." . str_replace("www","",$_SERVER["SERVER_NAME"] )

will give you "..domain.com"

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