Cookie Fingerprint
Description: This function fingerprints cookie functionality that the client's device is utilizing via the navigator.cookieEnabled object.
Issues: None.
Returns: true if cookies are enabled or false if cookies are disabled
Entropy: ~0.4 bits
Output for your computer is:
function fingerprint_cookie() { "use strict"; var strOnError, bolCookieEnabled, bolOut; strOnError = "Error"; bolCookieEnabled = null; bolOut = null; try { bolCookieEnabled = (navigator.cookieEnabled) ? true : false; //if not IE4+ nor NS6+ if (typeof navigator.cookieEnabled === "undefined" && !bolCookieEnabled) { document.cookie = "testcookie"; bolCookieEnabled = (document.cookie.indexOf("testcookie") !== -1) ? true : false; } bolOut = bolCookieEnabled; return bolOut; } catch (err) { return strOnError; } }