Re: Session Management and Sub-Domains

From: Date: Fri, 07 Jul 2000 17:44:09 +0000
Subject: Re: Session Management and Sub-Domains
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5419@lists.php.net to get a copy of this message
> This seems to work just fine when viewing pages at one sub-domain. However, > if the user logs in at one sub-domain and then visits another sub-domain the > session_id() value is different and therefore not found in the table, so the > user is no longer authenticated. It might be related to the domain set in the cookie. Try setting session.cookie_domain to your top-level domain in php.ini to make sure the cookie will be sent to every webserver in your domain. If necessary, use phpinfo() to verify that the proper cookie is being seen by the webserver.

« previous php.general (#5419) next »