|
Posted by Marek Kilimajer on 03/05/05 05:01
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"
Navigation:
[Reply to this message]
|