Hi I have web component in folder under the root which create a cookie under this file path. I have aspx page and I need to access this cookie but I can't fine it
Cookie created from javascript has path "/library/scripts" while cookies created form C# page has path ="/"
Javascript file C:\localhost\library\scripts\myfile.js
var myPath = '/';
document.cookie = "Cookiename" + "=" + JSON.stringify(CookieValue) + "; path=" + myPath;
C# file C:\localhost\folder1\folder2\folder3\folder4\mypage.ascx.cs
if (Request.Cookies["Cookiename"] != null)
{
cookieValue = Request.Cookies["Cookiename"].Value.ToString();
}