how to set HTTP only flag in XAMPP

醉酒当歌 提交于 2019-12-08 13:17:14

问题


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

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