c# - Does HttpCookie.HttpOnly property allow connection over https? -
when set cookie httponly property true, server restrict cookie on https, or allow connection on both http , https ?
it allows both. httponly
determines whether or not cookie can accessed through client-side script. has nothing ssl. msdn:
setting httponly property true not prevent attacker access network channel accessing cookie directly. consider using secure sockets layer (ssl) protect against this.
you can use requiressl="true"
entry in web.config secure authentication cookies. can use secure
property secure individual cookie.
Comments
Post a Comment