I'm trying to add cookies using c#, everything works good for me. But I need to make it visible on all pages. So please let me know where I need to add: ;path=/
in my code. here is my code:
<script>
function banner() {
$("#bannercookies").removeClass("open");
}
$(document).ready(function () {
if ($.cookie("popup_1_2") == null) {
$("#bannercookies").addClass("open");
$.cookie("popup_1_2", "2");
}
});
</script>
<div id="bannercookies" class="banner-cookies">
This website uses cookies to ensure you get the best experience on our
website.
<a href="PrivacyPolicy.html#section11" class="link-underlined white"
>Cookies Policy</a
>
<button class="gotitbtn" onclick="banner();">GOT IT</button>
</div>