Re: Session problems / where to register

From: Date: Fri, 23 Aug 2002 13:29:55 +0000
Subject: Re: Session problems / where to register
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113763@lists.php.net to get a copy of this message
session.cookie_domain in your php.ini file. Or use ini_set to set it before calling session_start() On Fri, 23 Aug 2002, Chad Day wrote: > I had a similar question about session scope before, and I learned that if I > want a session variable to be available across my subdomains > (www.domain.com, my.domain.com, mail.domain.com), I need to register it at > domain.com. So I understand that.. > > The problem I have now is this: I have users who are going to enter the > site at my.domain.com. When they hit the index page there, a check is > performed against the cookie, and if they are authenticated, it loads their > personal index page. But if I want to register session variables here, they > are only going to be available to my.domain.com pages, not www.domain.com or > mail.domain.com. Short of using a Header call to redirect them to a page on > domain.com which just registers the session variables, does anyone have any > tricks or advice in tackling this problem? The redirection to set session > variables, then redirecting back, is kind of ugly. > > Thanks, > Chad > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#113763) next »