summaryrefslogtreecommitdiffstats
path: root/system/core/Security.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-19 11:09:38 +0100
committerAndrey Andreev <narf@bofh.bg>2012-03-19 11:09:38 +0100
commitcf10de5aa03bd7c0036a8347f22ace3089779092 (patch)
tree63c403df162d5d94ec11eb8f86949d4016fe4e4e /system/core/Security.php
parent25357cd7886b95d1e77b6a539a4588a265688874 (diff)
parent4ad0fd86e8dc6dba74305dbb0c88c593b46a19a2 (diff)
Merge pull request #1182 from freewil/cookies-httponly
Cookies httponly
Diffstat (limited to 'system/core/Security.php')
-rwxr-xr-xsystem/core/Security.php10
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;