I have a cookiescript, works great. I would like to have the experation time after 5 minutes. How can I do this?
expires: 30 = 30 days?
EDIT
cookie_popup = (function() {
var date = new Date();
var minutes = 5;
date.setTime(date.getTime() + (minutes * 60 * 1000));
if ($.cookie('cookie_popup') == undefined) {
$('.cookie-popup-wrap').fadeIn(600);
$.cookie('cookie_popup',true,{ expires: date });
};
$('#closepopup').click(function (e) {
e.preventDefault();
$('.cookie-popup-wrap').fadeOut(600);
});
});
setTimeout(function() {
cookie_popup();
}, 2000);
$(window).scroll(function(){
if($(this).scrollTop() > 100){
cookie_popup();
}
});