I have done this:
$.cookie("ultOS", (i), {expires:1});
But it will come only the next day.
How can I finish a cookie at midnight?
Will this work instead?
var date = new Date(); var midnight = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 23, 59, 59); $.cookie("ultOS", (i), {expires: midnight});
jquery jquery-plugins
Thiago
source share