Re: Re: Session_id(); are changing between the pages.
| From: | Stuart Dallas | Date: | Sat, 07 Jun 2014 21:51:07 +0000 |
| Subject: | Re: Re: Session_id(); are changing between the pages. | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323402@lists.php.net to get a copy of this message | ||
> On 7 Jun 2014, at 22:38, hadi <almarzuki2011@hotmail.com> wrote:
>
> I checked the browser (Set-Cookie) Cookie transferred to the browser but not
> sending back to the server.
Are you using localhost as your hostname? If so that’s why; cookies will not be stored against
localhost. You need to either start using a hostname with at least on dot, or pass an empty string,
null or false as the hostname when setting the cookie.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/