Get Cookie values using jQuery in ASP.Net

Last Reply 2 months ago By dharmendr

Posted 2 months ago

how to get cookie value in one page to another page use jquery with ajax call .

we have use two pages . 

it's login page. i have set cookie value.

HttpCookie cookie = new HttpCookie("IsValidLogin");

cookie["UserId"] = "12345";
Response.SetCookie(cookie);
Response.Redirect("~/Default.aspx");

i will get cookie value another page.

AjaxCall('<%= cookie.set["UserID"] %>');-- How to get here cookie value. 

Please solve my problem