Did you try
$.cookie('the_cookie', 'the_value', { expires: 7 }); // expires after
7 days
?
The expires option will also accept a Date object.
--Klaus
On 8 Jun., 20:27, Richard Walsh <[email protected]> wrote:
> Hey guys, I'm working on a project where I am using the jquery plugin
> that Klaus made. The cookie works very well with the exception that
> when the user closes the browser the cookie expires. I've been trying
> to figure out how I can set the var for expiry so that this doesn't
> happen but I am at a loss. Any advice?