$cookie - set cookie for entire site or page-only

0 votes
66 views
added Feb 14, 2020 in jQuery by lcjr First Warrant Officer (9,190 points)
// for entire site, use path
$.cookie('app-banner', 'showed', { path: '/', expires: expAppBanner });

// for page-only;
$.cookie('app-banner', 'showed', { expires: expAppBanner });

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...