Hi,
How to implement Insecure Cookie Attribute .
Regards,
Pratik
Hi,
How to implement Insecure Cookie Attribute .
Regards,
Pratik
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Tahir AnsariRank #366 · 6.8K reputationPosted Oct 13, 2023, 5:37 AM EDT
protected void SetSecureCookieButton_Click(object sender, EventArgs e) { HttpCookie myCookie = new HttpCookie("MyCookieName"); myCookie.Value = "CookieValue"; myCookie.Secure = true; // Add the cookie to the response Response.Cookies.Add(myCookie); }