jQuery Cookie only setting when logged in as a WordPress Admin -


i trying set cookie when link clicked on website. works fine if logged in wordpress admin. if i'm not logged in , browse website normal user, not set cookie.

here code:

$(function(){   $("#fl-link").click(function() {    jquery.cookie("cookie_language", null, { path: '/' , domain: 'domain.com' });        jquery.cookie('cookie_language', 'florida', { path: '/' , domain: 'domain.com', expires: 365 });    }); }); 

any suggestions?


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -