Sunday, 18 August 2013

jQuery cookie plugin creates same cookie instead of read it

jQuery cookie plugin creates same cookie instead of read it

I've this:
// connect to MemberHub
function connect() {
// get unique id cookie
var uid = $.cookie('UniqueID', { path: '/' });
member.server.connect(uid).done(function (result) {
if (result.msg == 'success') {
// notify user
$('#log').append($('<li>', { html: 'Connected to MemberHUB' }));
}
});
}
Each time I try to read cookie it creates same cookie instead of read it.

Any advice will be helpful.

No comments:

Post a Comment