//This block of code in the document ready is needed because safari is the only browser that doesn't allow 3rd party cookies by default //If you don't care about Safari support you can ommit this, note you need the query.cookie.min.js import above for this to work $( document ).ready(function() { if (navigator.userAgent.indexOf('Safari') != -1 && navigator.userAgent.indexOf('Chrome') == -1) { if (!$.cookie('fixed')) { $.cookie('fixed', 'fixed', { expires: 365, path: '/' }); // 1 year window.location.replace("https://www.eventscribe.com/2021/AAPD2021/agenda.asp"); } } });