How can i validate then cookie is httponly on sever side .net ??
I wanna know for sure that this cookies is mine and not set by some malicious client....
This is my code, and cookie.HttpOnly or cookie.Secure always retuen false value...
if ((HttpContext.Current.Request.Cookies.Count > 0)) {
object cookie = HttpContext.Current.Request.Cookies["mycookie"];
if (cookie) {
IsNot;
null;
if ((cookie.HttpOnly && cookie.Secure)) { // always false!!!
_token = cookie.Value;
}
}
}