Файл cookie по-прежнему установлен на HTTP с помощью ini_set('session.cookie_secure',1); ⇐ Php
-
Anonymous
Файл cookie по-прежнему установлен на HTTP с помощью ini_set('session.cookie_secure',1);
My config file looks like this:
ini_set('session.cookie_secure',1); ini_set('session.cookie_httponly',1); ini_set('session.use_only_cookies',1); session_start(); //database connection part... When accessing this page via https://www.mysite.com/config.php, the PHPSESSID cookie it's "Secure" slot is empty. Visiting the page via http://www.mysite.com/config.php shows the exact same cookie, with the same value.
I'm new to this so maybe I'm wrong, but this shouldn't happen, right? What am I doing wrong?
Thanks!
Источник: https://stackoverflow.com/questions/208 ... e-secure-1
My config file looks like this:
ini_set('session.cookie_secure',1); ini_set('session.cookie_httponly',1); ini_set('session.use_only_cookies',1); session_start(); //database connection part... When accessing this page via https://www.mysite.com/config.php, the PHPSESSID cookie it's "Secure" slot is empty. Visiting the page via http://www.mysite.com/config.php shows the exact same cookie, with the same value.
I'm new to this so maybe I'm wrong, but this shouldn't happen, right? What am I doing wrong?
Thanks!
Источник: https://stackoverflow.com/questions/208 ... e-secure-1
Мобильная версия