Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which browsers do support HttpOnly cookies?

People also ask

Can browser set HttpOnly cookies?

An HttpOnly cookie means that it's not available to scripting languages like JavaScript. So in JavaScript, there's absolutely no API available to get/set the HttpOnly attribute of the cookie, as that would otherwise defeat the meaning of HttpOnly .

Does HttpOnly work over HTTPS?

Conclusion. Security of cookies is an important subject. HttpOnly and secure flags can be used to make the cookies more secure. When a secure flag is used, then the cookie will only be sent over HTTPS, which is HTTP over SSL/TLS.

How do I add HttpOnly cookies?

Set HttpOnly cookie in PHPini_set("session. cookie_httponly", True); This is the most common way to set cookies in PHP, empty variables will hold their default value.

How do I know if cookies are HttpOnly?

Press F12, go to the network tab, and then press Start Capturing. Back in IE then open the page you want to view. Back in the F12 window you show see all the individual HTTP requests, select the one that's the page or asset you're checking the cookies on and double click on it.


Feel free to add to this list:

  • Internet Explorer since 6 sp1 (source, source)
  • Firefox since 2.0.0.5 (source)
  • Opera since 9.5 (possibly earlier) (source)
  • Safari since 4 (source)
  • Chrome since 1.0.154 (source)

Up to date results can be found here:

http://www.browserscope.org/?category=security

(linked from the OWASP article mentioned above)


OWASP have this documented. See http://www.owasp.org/index.php/HttpOnly