RE: [PHP] Session problems / where to register
| From: | Chad Day | Date: | Fri, 23 Aug 2002 14:22:58 +0000 |
| Subject: | RE: [PHP] Session problems / where to register | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113775@lists.php.net to get a copy of this message | ||
Ok, thanks. I changed it in php.ini and it seems to work.
I'd rather set it in the script, but I had problems with that:
if (ini_set("session.cookie_domain", "domain.com")) {
echo "ini_set";
} else {
echo "no ini";
}
always failed.. I also tried moving it above the session_start call (saw in
a comment on php.net), but it still failed there as well. If anyone knows
why that would be failing, please let me know.
Thanks for your help, Rasmus. Much appreciated.
Chad
-----Original Message-----
From: Rasmus Lerdorf [mailto:rasmus@php.net]
Sent: Friday, August 23, 2002 10:21 AM
To: Chad Day
Cc: php-general@lists.php.net
Subject: RE: [PHP] Session problems / where to register
> 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.
That is the same thing in this case. The only way a session variable is
tied to a domain is through whatever mechanism decides how the session id
is propogated. If you are using cookies, then the cookie domain tells the
remote browser which domains to send this cookie-based session id to.
-Rasmus