Re: Re: Session_id(); are changing between the pages.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 8 Jun 2014, at 00:29, hadi <almarzuki2011@xxxxxxxxxxx> 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/
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux