I am trying to make asp.net cookie secure like Response.Cookies["username"].Secure = true
. Some reason these are failing. I mean after login I am setting this then new page is showing error "Page can not displyed"
.
Response.Cookies["username"].HttpOnly= true
is working for all cookies. not Secure
.
Is it because I am using on localhost? does it need https://
?