You can set a timeout of a certain number of days (10 here) on the cookie:
$.cookie("test", 1, { expires : 10 });
Here I want to stress one point If the expires option is omitted, then the cookie becomes a session cookie, and is deleted when the browser exits.