Re: Session_id(); are changing between the pages.
| From: | Stuart Dallas | Date: | Sun, 08 Jun 2014 00:02:41 +0000 |
| Subject: | Re: Session_id(); are changing between the pages. | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323416@lists.php.net to get a copy of this message | ||
> On 8 Jun 2014, at 01:00, hadi <almarzuki2011@hotmail.com> wrote:
>
> Aziz Saleh,
>
>> What is the cookie value for PHPSESSID on each of those pages you have?
>
> I'm getting different value on each page, not the same value.
This is because the browser is not sending the cookie back to the server, so the call to
session_start() is creating a new session for each request.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/