Set all cookies on the root path
This commit is contained in:
parent
fb9afd32db
commit
31c81f108d
1 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ $(document).ready(function () {
|
|||
|
||||
$('.welcome .close-wrap').on('click', function() {
|
||||
$('.welcome').hide();
|
||||
$.cookie('_osm_welcome', 'hide', { expires: expiry });
|
||||
$.cookie('_osm_welcome', 'hide', { expires: expiry, path: '/' });
|
||||
});
|
||||
|
||||
var bannerExpiry = new Date();
|
||||
|
@ -182,7 +182,7 @@ $(document).ready(function () {
|
|||
$('#banner').hide();
|
||||
e.preventDefault();
|
||||
if (cookieId) {
|
||||
$.cookie(cookieId, 'hide', { expires: bannerExpiry });
|
||||
$.cookie(cookieId, 'hide', { expires: bannerExpiry, path: '/' });
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue