The essence of the script: Open a modal window, once at the opening of the site, every 2 days, with a delay of 5 seconds before opening.
Cook is added, the window is shown, but only once. After two days does not appear. Maybe because it is updated every time you go to the site? What is wrong in the code?
if (!$.cookie('was')) { setTimeout(function() { $('#boxUserFirstInfo').arcticmodal({ closeOnOverlayClick: false, closeOnEsc: true, }); }, 5000); $.cookie('was', true, { expires: 2, path: '/' }); };
;expires= date-in-GMTS string-format - Grundy2- This is not a date in GMT format - Grundy$.cookie, right, add to the question a link to$.cookie- Grundy