Re: phpbb / sessionid nightmare
| From: | Chris | Date: | Sun, 29 Apr 2007 22:45:08 +0000 |
| Subject: | Re: phpbb / sessionid nightmare | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-254118@lists.php.net to get a copy of this message | ||
Brad Sumrall wrote:
The cookie it's self says PHPSESSID=26b7974a5d71c7d0bfebbf71750dac7b Path=/ Host=www.domain.com When I go to the jacked up page, I pickup this one PHPSESSID=a787e077dd18ed18cb824f664d38315d Path=/ Host=domain.comThat will be your problem. A cookie created on domain.com is ONLY readable by domain.com (unless you make it '.domain.com' which is technically different to 'domain.com'). Check out 'session.cookie_domain', you can set it with an ini_set call: ini_set('session.cookie_domain', '.domain.com'); See http://www.php.net/manual/en/ref.session.php and http://www.php.net/setcookie for more info about how cookie domains work. -- Postgresql & php tutorials http://www.designmagick.com/