I did this:
$.cookie(\"ultOS\", (i), {expires:1});
But it will only expire next day.
How can I expire a cookie at midnight?
I think this would work:
var currentDate = new Date(); expirationDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), currentDate.getDate()+1, 0, 0, 0); $.cookie("ultOS", "5", {expires: expirationDate});