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.
https://samy.pl/evercookie/
4.42k stars 663 forks source link

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

Open AlvinWei1024 opened 7 years ago

AlvinWei1024 commented 7 years ago
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;

ghost commented 6 years ago

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

vladimmi commented 6 years ago

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