At work we use a Win7 box to run our site. I know not really an appropriate server OS, but it was working just fine until we upgraded to PHP 7.1 and Apache 2.4 from PHP 5.2 and Apache 2.2.
Now seemingly randomly, all PHP sessions break, and no new session can be created. Basically everyone gets logged out and cannot log back in until we restart Apache. This happens on average once a week.
Needless to say this is extremely annoying.
There are no error log entries to help identify the problem. The only thing I have been able to detect so far is that the php $_COOKIE variable becomes
NULL instead of an array containing the PHPSESSID.
I've tried changing the default session directory. I've altered the session.gc_probability. Nothing seems to help at all.
Any help at all would be GREATLY appreciated.
BTW, I have the exact same version of Apache and PHP on my personal Ubuntu server and I have zero issues.
And the PHP.ini (Session)