使用HttpOnly阻止cookie盗窃

1.<httpCookies domain=""httpOnlyCookies="true" requierSSL="false" />

2.Response.Cookies["MyCookie"].Value="Rememering you.."

   Response.Cookies["MyCookie"].HttpOnly=true

posted @ 2020-01-05 14:38  守望阳光01  阅读(387)  评论(0编辑  收藏  举报