Get Cookie values using jQuery in ASP.Net

Last Reply 24 days ago By dharmendr

Posted 24 days 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