I have this code below. I need to change the cookie
to expire every hour, but setting 1 to this line doesn't help (tomorrow.setHours(6,0,0,0)
)
// cookie
var now = new Date();
var next = new Date(now.setTime(now.getTime() + sWait));
document.cookie = cookie + '=1;expires=' + next.toGMTString() + ';path=/';
var tomorrow = new Date(); tomorrow.setHours(6,0,0,0);
document.cookie = cookie + 'Cap=' + (popsToday + 1) + ';expires=' + tomorrow.toGMTString() + ';path=/';
pop2under();
}
};