Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2000071

Re: [PHP] Session Management and Sub-Domains From: Chris Adams (chris <email protected>)
Date: 07/07/00

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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>