Re: session.cookie_domain
| From: | CPT John W. Holmes | Date: | Wed, 27 Aug 2003 18:19:01 +0000 |
| Subject: | Re: session.cookie_domain | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160943@lists.php.net to get a copy of this message | ||
From: "Shu Chow" <schow@macnexus.org>
> We're having a problem with a site that recently upgraded to php 4.3.3.
> Ever since the upgrade, session variables won't pass between pages.
> Looking at the php.ini file, I see that session.cookie_domain is set to
> server.hostingcompany.com while our site is www.ourdomain.com. If the
> session.cookie_domain is set to another domain, would this be the cause
> of our problems?
Yeah, that'd cause problems. You can set your own value for the domain using
an .htaccess file or the session_set_cookie_params() function
http://us2.php.net/manual/en/function.session-set-cookie-params.php
---John Holmes...