I want to make my session cookie HttpOnly
. Based on this article, I added this to my application.ini
:
resources.session.cookie_httponly = true
Unfortunately, when I look at the session cookie in Firecookie, it is not marked as HttpOnly
as I have specified. What step am I missing?
HttpOnly
is a step to protect from XSS: codinghorror.com/blog/2008/08/… – OverridingHttpOnly
is the option that does not allow you to read cookies from js. So it protects cookie from being readed in js. There is no connection between XSS andHttpOnly
. – ExcogitateHttpOnly
protects from cookie being read. Without this option your site is not more XSS vulnerable. – Excogitate