Re: Followup to session question / scope of session

From: Date: Fri, 19 Jul 2002 19:21:43 +0000
Subject: Re: Followup to session question / scope of session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108562@lists.php.net to get a copy of this message
On Friday, July 19, 2002, at 02:59 PM, Chad Day wrote:
So.. I guess the solution is to set the cookie at online-leagues.com, not www.online-leagues.com, and this will make it readable by all of *.online-leagues.com.
I don't have access to a PHP-enabled server at the moment, so I can't test this. But if you really want to know how this works, try executing the following code somewhere in your script after session_start(): $sessionCookieData = array(); $sessionCookieData = session_get_cookie_params(); foreach ($sessionCookieData as $paramName => $paramValue) { echo "<p>The cookie's " . $paramName . " value is " . $paramValue . "</p>\n"; } Please report your findings to the list, it will be interesting to see which subdomain session_start() sets in the cookie as its "domain" value. I'm guessing it's whatever the current subdomain is and NOT the generic ".domain.com" value as I originally thought. Erik

« previous php.general (#108562) next »