I'm using jQuery.cookie set cookies, however if I refresh the page or open a new page,sometimes, the cookie is lost. Why is this happening?
Here is my code:
jQuery.cookie('sid', 'sessionid', {expires: 30, path: '/', domain: 'xici.net'});
discussion: expires: 30 means 30 days, it set by jQuery.cookie library scurse code.