问题
I want to set HTTP
only flag in xampp v3.2.2
i have installed opencart v 2.3.0.2
on xampp
and enable it in every php.ini
but still not working you can also see this for more information here
回答1:
session.httponly option can be enabled by php.ini. To verify that it is working you will need to run:
phpinfo();
if the option is not there or set properly, then you are editing the wrong php.ini file.
回答2:
For XAMPP on Ubuntu edit the file php.ini
/opt/lampp/etc/php.ini
session.cookie_httponly=On
You can check its set using phpinfo();
http://php.net/manual/en/session.security.ini.php
来源:https://stackoverflow.com/questions/45784484/how-to-set-http-only-flag-in-xampp