Hi, the following code sets Cookies based on the identifier of the link that was clicked (this value), it works, but what needs to be done to set the domain, I read how to do this by setting the domain in the values, when I install domin, it doesn’t will set a cookie at all
AT:
jQuery(document).ready(function(){
$(".htabs a").click(function(e){
$.cookie('siteVistedCookie', $(this).attr("id"), { expires: 7, path: '/'});
});
});
Does not work
jQuery(document).ready(function(){
$(".htabs a").click(function(e){
$.cookie('siteVistedCookie', $(this).attr("id"), { expires: 7, path: '/', domain: 'www.xample.com' });
});
});
source
share