php-general | 2000071
Date: 07/07/00
- Next message: James Purvins: "[PHP] debugging and getting output from php code embedded in html"
- Previous message: Ryan Adams: "[PHP] open/save dialog on page load"
- In reply to: \[ rswfire \]: "[PHP] Session Management and Sub-Domains"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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>
- Next message: James Purvins: "[PHP] debugging and getting output from php code embedded in html"
- Previous message: Ryan Adams: "[PHP] open/save dialog on page load"
- In reply to: \[ rswfire \]: "[PHP] Session Management and Sub-Domains"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

