Welcome Guest, Not a member yet? Register   Sign In
HttpOnly cookie in CodeIgniter
#6

(06-09-2017, 02:53 AM)NickOver Wrote: Seriusly? You are developer and u can't write in google 'php how to set http_only cookie'?
In system/library/Session.php:688 add comma at end, and in next line type 'true' (as bollean ofc)
If in that place isn't any variable how you wanna put there something?

Dont act too smart Nick
I have searched google and found that httponly cookie is not implemented in CI 2.1.3 and only after that I have posted in this forum. We can see in session.php itself that cookie_httponly  is not set

Code:
foreach (array('sess_encrypt_cookie', 'sess_use_database', 'sess_table_name', 'sess_expiration', 'sess_expire_on_close', 'sess_match_ip', 'sess_match_useragent', 'sess_cookie_name', 'cookie_path', 'cookie_domain', 'cookie_secure', 'sess_time_to_update', 'time_reference', 'cookie_prefix', 'encryption_key') as $key)

Common sense should prevail.
Reply


Messages In This Thread
HttpOnly cookie in CodeIgniter - by june123 - 06-09-2017, 12:57 AM
RE: HttpOnly cookie in CodeIgniter - by Narf - 06-09-2017, 01:51 AM
RE: HttpOnly cookie in CodeIgniter - by june123 - 06-09-2017, 02:07 AM
RE: HttpOnly cookie in CodeIgniter - by Narf - 06-09-2017, 03:44 AM
RE: HttpOnly cookie in CodeIgniter - by NickOver - 06-09-2017, 02:53 AM
RE: HttpOnly cookie in CodeIgniter - by june123 - 06-09-2017, 03:29 AM
RE: HttpOnly cookie in CodeIgniter - by kris - 06-09-2017, 02:58 AM
RE: HttpOnly cookie in CodeIgniter - by InsiteFX - 06-09-2017, 04:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB