Re: Session and Server variable problem
| From: | CPT John W. Holmes | Date: | Fri, 19 Sep 2003 19:23:19 +0000 |
| Subject: | Re: Session and Server variable problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163204@lists.php.net to get a copy of this message | ||
From: "Stephen Schneider" <mindarch@mindarch.com>
> Have an interesting problem. Worked on a web site for a client. They
> have the server (IIS) set up and we are using php. Have been working
> with their domain with a .net extension. To go live, they repointed
> their .com domain to the web folder. Same spot the .net points to. But
> now server and session variables aren't working. They still work if we
> use .net but not .com. Can't set or read them. Anyone run into this
> before?
Sessions, by default, rely on cookies to propogate the session ID. You are
somehow setting the "domain" of the cookie to the .net address, more than
likely.
There are a multitude of ways you can do it, though. Check your
session.cookie_domain in php.ini. Check if it's being set with
session_set_cookie_params() or ini_set() or if the cookie is being created
manually with setcookie().
---John Holmes...