What may cause an ERR_CONNECTION_RESET error, on xampp while using session

自闭症网瘾萝莉.ら 提交于 2019-11-29 10:47:13

I have XAMPP with PHP7 and the same problem...

I've changed in php.ini: session.use_only_cookies from 0 to 1 and all works.

I reinstalled xampp with older PHP Version...

Looks like culprit was PHP 7.0.0

EDIT: Found something probably linked to it https://community.apachefriends.org/viewtopic.php?p=248070&sid=0b7559defe15317f41699d1ce9194e3f

EDIT2: Found this (bitnami developers)

we have been checking the configuration of XAMPP and we found that the issue is related to the use_only_cookies variable that you can find in the Session's section of the php.ini file. Apache will crash if the use_only_cookies variable in the Session's section is set to 0 and everything is fine if it's set to 1.

http://php.net/manual/en/session.configuration.php#ini.session.use-only-cookies

We also checked that the use_strict_mode should be set to 1.

https://wiki.php.net/rfc/strict_sessions http://php.net/manual/en/session.configuration.php#ini.session.use-strict-mode

We'll include those changes in the next version of XAMPP with PHP 7. We are building the installers with the version 7.0.2 and we'll release them as soon as possible.

In my case, Windows Event Viewer showed more useful data. It pointed to VCRUNTIME140.dll constantly crashing Apache (which caused the console to show ERR_CONNECTION_RESET), so I updated libraries to https://www.microsoft.com/en-us/download/confirmation.aspx?id=52685 - then, it showed faulting module as php7ts.dll - so I've followed instructions from http://ibraransari.blogspot.com/2017/01/how-to-solve-apache-crash-fault-module.html and I was good to go.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!