I have an issue with a site i run that when cookies are disabled completely user cannot continue through a booking process.
I use Jquery and the cookie plugin, the cookie appears to always return [object Object] when cookies are disabled. Code for checking this is:
alert($.cookie("sourceID")); //returns [object Object]
if($.cookie("sourceID") === null || $.cookie("sourceID")=== '[object Object]'){
sourceID = 27201;
}else{
sourceID = $.cookie("sourceID");
}
alert(sourceID); //returns [object Object]
the above is trying to set a default sourceID if the user does not have cookies enabled. This is then passed (along with other information) into another function that builds XML and passes it to a server for handling; however due to the [object Object] issue when this is passed the server cannot find a sourceid that matches.