RE: [PHP] Re: Session_id(); are changing between the pages.
| From: | hadi | Date: | Sun, 08 Jun 2014 00:16:58 +0000 |
| Subject: | RE: [PHP] 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-323417@lists.php.net to get a copy of this message | ||
Stuart,
> Try adding a hosts entry for the IP address, something like this:
>
> 192.168.206.129 site.local
>
> Then try your scripts at http://site.local/phptest/test2.php
Tried adding host entry in windows hosts file, but not luck same error.
http://x.hadi.com/phptest/test4.php
> >> 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.
> >
> > When I look in the server /tmp directory I found tow session file one for
> page3 with name inside it, and the second for page4 but its empty with
> different cookie header.
>
> In that case your server is working fine, but your browser is not sending the
> cookie back to the server.
>
> Try adding a hosts entry for the IP address, something like this:
>
> 192.168.206.129 site.local
>
> Then try your scripts at http://site.local/phptest/test2.php
>
> -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
Attachment: [application/pkcs7-signature] smime.p7s
Attachment: [application/pkcs7-signature] smime.p7s