Skip to content

Instantly share code, notes, and snippets.

@ZoczuS
Created February 3, 2015 18:18
Show Gist options
  • Select an option

  • Save ZoczuS/a07dcbc09d6972e6b54e to your computer and use it in GitHub Desktop.

Select an option

Save ZoczuS/a07dcbc09d6972e6b54e to your computer and use it in GitHub Desktop.
shared = SharedObject.getLocal("evercookie");
if(everdata) {
var newdata = everdata.split("=");
var str = shared.data.cookie;
var results = str.split("&");
var i = 0;
while(i < results.length) {
var elem = results[i].split("=");
if(elem[0] != newdata[0]) {
everdata = everdata + "&" + results[i];
}
i = i + 1;
}
}
shared.data.cookie = everdata;
shared.flush();
flash.external.ExternalInterface.call("_evercookie_flash_var", shared.data.cookie);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment