I did this:
$.cookie(\"ultOS\", (i), {expires:1});
But it will only expire next day.
How can I expire a cookie at midnight?
var date = new Date(); var midnight = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 23, 59, 59); var expires = "expires="+midnight.toGMTString();