Check if Cookie Exists

后端 未结 7 561
失恋的感觉
失恋的感觉 2020-12-03 02:21

From a quick search on Stack Overflow I saw people suggesting the following way of checking if a cookie exists:

HttpContext.Current.Response.Cookies         


        
7条回答
  •  悲哀的现实
    2020-12-03 03:02

    You can do something like this to find out the cookies's value:

    Request.Cookies[SESSION_COOKIE_NAME].Value
    

提交回复
热议问题