Re: Re: Session_id(); are changing between the pages.
| From: | Stuart Dallas | Date: | Sat, 07 Jun 2014 23:35:38 +0000 |
| Subject: | Re: Re: Session_id(); are changing between the pages. | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323409@lists.php.net to get a copy of this message | ||
> On 8 Jun 2014, at 00:29, hadi <almarzuki2011@hotmail.com> wrote:
>
> Stuart,
>
>> And you’re certain that cookies are enabled in your browser?
>
> Yes im sure cookie enabled in my browser in fact im using three browsers IE and Chrome,
> Firefox, for testing.
When I use your code, test3.php responds with a Set-Cookie header:
Set-Cookie: PHPSESSID=3b19d9302e3c09019b3e295ca20aeea2; path=/
When I click the button to go to test4.php, my browser (Chrome) sends this Cookie header:
Cookie: PHPSESSID=3b19d9302e3c09019b3e295ca20aeea2
If you’re not getting something equivalent to that then there’s something wrong with your
browsers, or there is something between you and the server that’s stripping cookie headers. If you
are getting that and it’s still not working you need to check to make sure your PHP processes can
write to /tmp. In fact it’s probably worth looking in /tmp on the server to see if there are PHP
session files in there.
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/