diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-02-16 18:23:16 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-02-16 18:23:16 +0100 |
commit | d8d1e24eee56d2466c91ecd72b3c8932eb3d0639 (patch) | |
tree | f9a78a5640393b74851eef4d1465e2ccbcc3bd37 /system/helpers/cookie_helper.php | |
parent | f2b9c911bcee47166f3fdc8f2f57d1cafeade006 (diff) |
Secure cookies can now be made with the set_cookie() helper and Input Class method.
Diffstat (limited to 'system/helpers/cookie_helper.php')
-rw-r--r-- | system/helpers/cookie_helper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/cookie_helper.php b/system/helpers/cookie_helper.php index 7701d503f..7cee02827 100644 --- a/system/helpers/cookie_helper.php +++ b/system/helpers/cookie_helper.php @@ -44,11 +44,11 @@ */ if ( ! function_exists('set_cookie')) { - function set_cookie($name = '', $value = '', $expire = '', $domain = '', $path = '/', $prefix = '') + function set_cookie($name = '', $value = '', $expire = '', $domain = '', $path = '/', $prefix = '', $secure = FALSE) { // Set the config file options $CI =& get_instance(); - $CI->input->set_cookie($name, $value, $expire, $domain, $path, $prefix); + $CI->input->set_cookie($name, $value, $expire, $domain, $path, $prefix, $secure); } } |