I am using Jquery Cookie and I am trying to retrieve a cookie in a different directory that I set like this:
<script>
$(document).ready(function () {
$("#saveForm").click(function () {
$.cookie('myCookie', $("#Website").val(), {
expires: 365,
path: '/'
});
});
</script>
The cookie is stored, I verified it in my browser's cookies. So I am trying to retreive it with this, but its not getting it. Is there something wrong with the path or is my code wrong?
This is the code I am using to try to retrieve it with:
<script>
$(document).ready(function () {
$("#Website").val($.cookie('myCookie'));
path: '/'
});
</script>