I did this:
$.cookie(\"ultOS\", (i), {expires:1});
But it will only expire next day.
How can I expire a cookie at midnight?
You can create a Javascript Date object with tonights (midnight) value, then set the expiration as follows:
$.cookie("example", "foo", { expires: date });
Where date is the date object.