How to set cookie value in one page and read it from another
How to set cookie value in one page and read it from another page web page using jQuery
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjeeb LenkaPosted Sep 15, 2015, 2:45 AM
Yatendra SharmaPosted Sep 15, 2015, 2:43 AM
Sanjeeb LenkaPosted Sep 15, 2015, 2:40 AM
Yatendra SharmaPosted Sep 15, 2015, 2:36 AM
Sanjeeb LenkaPosted Sep 15, 2015, 2:31 AM
$.cookie("example", "foo"); // Sample 1
$.cookie("example", "foo", { expires: 7 }); // Sample 2
$.cookie("example", "foo", { path: '/admin', expires: 7 }); // Sample 3
Get a cookie
alert( $.cookie("example") );
Delete the cookie
$.removeCookie("example");