1 session, 2 subdomains

From: Date: Mon, 03 Jun 2002 19:12:40 +0000
Subject: 1 session, 2 subdomains
Groups: php.general 
Request: Send a blank email to php-general+get-100451@lists.php.net to get a copy of this message
I am working on a sports website that will have a subdomain for each major sport. There is a login panel on the main domain that routes users to the appropriate subdomain depending on the sport that they are in. Everything seems to be ok with cookies (cookiedomain=.domain.tld) but I can't get it to work with sessions -- even if I pass the session id in the URL. In the login script, I define the session then route to the appropriate subdomain. This where the problem lies - after redirection, the session is lost. It appears that the session is defined for the domain name that the user signs in on - if I allow users to login on their given sport subdomain, the session works ok, but this doesn't work the way I'd like. Any ideas on what I'm doing wrong? (I can post my login/session code if need be) Thanks for any suggestions!! __________________ Jason Dulberg Extreme MTB http://extreme.nas.net

« previous php.general (#100451) next »