Don’t use Response.Cookies[string] to check if a cookie exists!(chwe.at)
submitted by
cribe(50) 3 years, 4 months ago
If you use code like “if (Response.Cookies[“mycookie”] != null) { … }”, ASP.Net automatically generates a new cookie with the name “mycookie” in the background and overwrites your old cookie! Always use the Request.Cookies-Collection to read cookies!
|category: ASP.NET
|Views: 14
tags:
ASP.NET another
Everyones tags:
Your Tags: