Re: Session has new id on 'some' pages.
| From: | Burhan Khalid | Date: | Tue, 19 Jul 2005 06:40:44 +0000 |
| Subject: | Re: Session has new id on 'some' pages. | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-218939@lists.php.net to get a copy of this message | ||
Marek Kilimajer wrote:
Andy Pieters wrote:Actually, you should set it to '.server.org.uk' which will make the cookie valid for all *.server.org.uk hosts.Ok found the solution, seems like one page is on http://server.org.uk and the other on www.server.org.uk even though its the same server it generates a different session id!set the domain of the cookie to 'server.org.uk', it's the fifth parameter of setcookie()