samyk / evercookie

Produces persistent, respawning "super" cookies in a browser, abusing over a dozen techniques. Its goal is to identify users after they've removed standard cookies and other privacy data such as Flash cookies (LSOs), HTML5 storage, SilverLight storage, and others.

Home Page:https://samy.pl/evercookie/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

evercookie return undefined when get() multi called at the same time

AlvinWei1024 opened this issue · comments

commented
var ec = new evercookie();
ec.set('testKey', 'testValue');

ec.get('testKey', res => {console.log(res)});
ec.get('testKey', res => {console.log(res)});

when get() multi called at the same time, the result may be undefined;

why you want to get multiple times? just call it once and store it in javascript variable.

@syamsoul because you want to store more than one cookie, for example. Using multiple get() with different keys breaks everything as well.