carhartl/jquery-cookie — Issue #32: Chrome - weird ignoring
Author: peminator
Created: 2011-10-25 15:37:44+00:00
State: open

I test online, using a subdomain (like test.something.com) and in FF it works fine but in Chrome it takes my first write attempt but "rewrite" not so fine anymore, funny thing it let me rewrite it once as I saved modifications to js file and then again not.
If possible I would like to apply cookie for all subdomains of domain, I hear there should be a dot before domain name to do this, but with or without domain option, it does not work. It allows only to change the cookie value once after I resave the .js file

my code snippet (simplified, using jQ and jQ-UI .dialog() ):

. . . .
buttons: {
"set to PN": function() {
$.cookie('region', 'PN', { expires: 90 }); //,path: '/', domain: '.example.com' (dotBeforeDomain = RFC2109)
location.reload(true);
$( this ).dialog( "close" );
},
"set to TN": function() {
$.cookie('region', 'TN', { expires: 90 });
location.reload(true);
$( this ).dialog( "close" );
}
}
});
. . . . .