I'm using the plugin jQuery.cookie by carhartl on my phonegap build project. However when I try to create a cookie and then read it, it return a null value : [object Object].
Here is the code :
$(".validator").click(function(){
$.ajax({
type: "POST",
url: "http://path/to/adduser.php",
data: dataString,
cache: false,
success: function(result){
$.cookie('name', 'yolo', { path: '/' });
alert($.cookie());
});
});
Do you have any idea to help me resolve my problem ?