I have to set a cookie in C# and access it in UI through jQuery. I need to access this cookie throughout the application. I'm able to see the cookie in chrome developer tool : Application - Storage - Cookies but if I try to access as $.cookie("_MyCookie")
its undefined.
C#
Response.Cookies.Add(new HttpCookie("_MyCookie") { Value = language });
jQuery
$.cookie("_MyCookie");