To learn more, see our tips on writing great answers. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Basically youre telling me that the location cookie is there but the ability to disable the modal upon close or upon the user already visiting the site, correct? By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. You could use sessionStorage - code example below: , if (sessionStorage.getItem('modal') !== 'true') {, $('body').append('