diff options
author | freewil <sean@eternalrise.com> | 2012-03-14 03:37:42 +0100 |
---|---|---|
committer | freewil <sean@eternalrise.com> | 2012-03-18 19:32:17 +0100 |
commit | 4ad0fd86e8dc6dba74305dbb0c88c593b46a19a2 (patch) | |
tree | ce86c3c8958b2df033c873386f6f8261bc40b0eb /system/core/Security.php | |
parent | e464b39b8594ef317cf5b47b4e130ee9f63e7bd5 (diff) |
add support for httponly cookies
Diffstat (limited to 'system/core/Security.php')
-rwxr-xr-x | system/core/Security.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/system/core/Security.php b/system/core/Security.php index cd8a61028..ac39ce97b 100755 --- a/system/core/Security.php +++ b/system/core/Security.php @@ -196,7 +196,15 @@ class CI_Security { return FALSE; } - setcookie($this->_csrf_cookie_name, $this->_csrf_hash, $expire, config_item('cookie_path'), config_item('cookie_domain'), $secure_cookie); + setcookie( + $this->_csrf_cookie_name, + $this->_csrf_hash, + $expire, + config_item('cookie_path'), + config_item('cookie_domain'), + $secure_cookie, + config_item('cookie_httponly') + ); log_message('debug', 'CRSF cookie Set'); return $this; |