Windows 7 Apache 2.4 and Cookies

Started by Hobbes, August 21, 2017, 10:40:49 PM

Previous topic - Next topic

Hobbes

I am not 100% sure this is an Apache issue, however, ever since we upgraded to apache2.4 and PHP7.1 we have been experiencing seemingly random session loss.

No errors are reported and the only data that I've been able to collect so far is that in PHP the $_COOKIE variable will be NULL instead of the array containing the PHPSESSID value.

The result is, all users are logged out and cannot log back in until we reset Apache.

I've tried all the php.ini tweaking I can, and the problem remains. This was not an issue with PHP5.2 and Apache2.2.

I made this ServerFault post which has a lot more detail.

https://serverfault.com/questions/869781/apache-on-windows-cookie-w-php-sessions-bug

Hopefully someone has an idea, I would hate to have to downgrade =[

Jan-E

Try switching to the NTS version of PHP, using mod_fcgid. Or go straight to PHP 7.2. The TS versions of PHP 7.0 and PHP7.1 have known issues. Ref:
https://twitter.com/krakjoe/status/887743571515912196
https://github.com/amphp/parallel/issues/10#issuecomment-316283265

On serverfault you said:
Quote from: Hobbes
BTW, I have the exact same version of Apache and PHP on my personal Ubuntu server and I have zero issues.
Am I correct that you are running the NTS version on Ubuntu?