Commit 97a90d15 by Daniel Ruf

set HttpOnly flag to true

parent 20c40626
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
else else
$cookieid=qa_db_cookie_create(qa_remote_ip_address()); $cookieid=qa_db_cookie_create(qa_remote_ip_address());
setcookie('qa_id', $cookieid, time()+86400*365, '/', QA_COOKIE_DOMAIN); setcookie('qa_id', $cookieid, time()+86400*365, '/', QA_COOKIE_DOMAIN, (bool)ini_get('session.cookie_secure'), true);
$_COOKIE['qa_id']=$cookieid; $_COOKIE['qa_id']=$cookieid;
return $cookieid; return $cookieid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment