Re: PHP Session passed to different sub domains

From: Date: Fri, 07 Nov 2003 00:04:38 +0000
Subject: Re: PHP Session passed to different sub domains
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168791@lists.php.net to get a copy of this message
>Could someone tell me how to pass a session cookie to different sub >domains, without passing it in url. It's in the manaul... http://www.php.net/manual/en/function.setcookie.php "To make the cookie available on all subdomains of example.com then you'd set it to '.example.com'. The . is not required but makes it compatible with more browsers. Setting it to www.example.com will make the cookie only available in the www subdomain. Refer to tail matching in the spec for details." ...and the spec ("tail matching")... http://wp.netscape.com/newsref/std/cookie_spec.html --------------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html

« previous php.general (#168791) next »