I recently moved a bunch of websites to the new VPS and am having trouble with PHP sessions. All websites are pretty much the same, but there is one website where sessions don't always work. What bothers me is an accident. I can go to the site, log in, and the session will work fine. Then, I'll be back in an hour, try logging into the same account, but it no longer supports the session.
VPS runs on CentOS 5.8 and has PHP 5.4.3 . It should be noted that prior to the migration, the website worked on PHP 5.3 .
I checked session.save.path and that is fine. I even see session files (with the correct user and everything), but they are empty when the sessions do not work, which makes sense. But why does it sometimes work, and sometimes not? I am having trouble with this.
source share