PHP Sessions not "saving" / "working"
April 11, 2013 08:58PM
Hi all,

I am running nginx and php-fpm on Centos 6.3.

I am noticing a strange behaviour where php sessions are not working. To troubleshoot it, I did the basics:

1. Made sure php-fpm was using the /tmp directory
2. chmod 777 /tmp
3. Set php-fpm to use the same user as nginx.

None of this helped, so then I created a simple PHP file to help diagnose: sessiontest.php

echo session_id();

When I run this file, in theory, the value should increase by 1 every single time. However, it does not.

Does anybody have any suggestions?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 133
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready