Commit fadebb79 authored by bmortier's avatar bmortier
Browse files

Merge branch '6217-security-set-cookie-settings-to-true-for-option-httponly' into '1.3-fixes'

Showing with 7 additions and 0 deletions
+7 -0
...@@ -151,6 +151,13 @@ class session { ...@@ -151,6 +151,13 @@ class session {
!! The garbage collector is a cron job on debian systems, the cronjob will fetch the timeout from !! The garbage collector is a cron job on debian systems, the cronjob will fetch the timeout from
the php.ini, so if you use debian, you must hardcode session.gc_maxlifetime in your php.ini */ the php.ini, so if you use debian, you must hardcode session.gc_maxlifetime in your php.ini */
ini_set("session.gc_maxlifetime", 24 * 60 * 60); ini_set("session.gc_maxlifetime", 24 * 60 * 60);
/*
* Set HttpOnly in order to enhance security by disabling execution of javascript on cookies,
* allowing possible XSS attacks
*/
ini_set("session.cookie_httponly", "1");
if ($id !== NULL) { if ($id !== NULL) {
session_id($id); session_id($id);
} }
......
Supports Markdown
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