The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: Windows 7 Apache 2.4 and Cookies  (Read 427 times)

Hobbes

  • Newbie
  • *
  • Offline Offline
  • Posts: 1
Windows 7 Apache 2.4 and Cookies
« on: August 21, 2017, 10:40:49 PM »

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 =[
Logged

Jan-E

  • Newbie
  • *
  • Offline Offline
  • Posts: 33
Re: Windows 7 Apache 2.4 and Cookies
« Reply #1 on: August 28, 2017, 03:21:11 AM »

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?
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13