RE: [PHP] Session problems / where to register
| From: | Chad Day | Date: | Fri, 23 Aug 2002 13:59:33 +0000 |
| Subject: | RE: [PHP] Session problems / where to register | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113767@lists.php.net to get a copy of this message | ||
Isn't that just if I want to set cookies in that domain? I'm looking to
just register session variables, not save cookies to the user's machine.
Either way, I tried it and:
ini_set("session.cookie_domain", "domain.com");
also
ini_set("session.cookie_domain", ".domain.com");
neither seem to be working in regards to session variables.
Thanks,
Chad
-----Original Message-----
From: Rasmus Lerdorf [mailto:rasmus@php.net]
Sent: Friday, August 23, 2002 9:30 AM
To: Chad Day
Cc: php-general@lists.php.net
Subject: Re: [PHP] Session problems / where to register
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
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php