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

后端 未结 3 749
星月不相逢
星月不相逢 2020-12-19 08:06

I have problem with xampp (Windows) where I have session_start(); in my file but it like drops that request...

When I try to access page with loca

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-19 08:49

    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.

提交回复
热议问题