merhaba altaki kod calişmadı ne yaptıysam cookie eklemiyor. yardımcı olurmusunuz.

var fingerprintCookieName = "browserFingerprint"
var fingerprintCookieValue = getFingerprintCookie();

function generateRandom(len) {
// generates a random string of alpha-numerics
var chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
var result = "";
for (var i = 0; i < len; i++) {
result = result + chars.charAt(Math.floor(Math.random()*chars.length));
}
return result;
}

function getFingerprintCookie() {
var fingerprint = getCorrelationID(fingerprintCookieName);
if (fingerprint == null || fingerprint.length < 1) {
// generate a new random fingerprint
fingerprint = generateRandom(50);
var exp = new Date ();
exp.setFullYear(exp.getFullYear()+20);
var cookieDef = fingerprintCookieName + "=" + fingerprint + ";path=/;secure;expires=" + exp.toGMTString();
document.cookie = cookieDef;
}
return fingerprint;
}
if((typeof deviceFonts != "undefined")&& deviceFonts){
jsonObj['deviceFonts'] = fontList;
}

//
// BEGIN - added to insert fingerprint cookie in session
//
if((typeof fingerprintCookieValue != "undefined")&& fingerprintCookieValue){
jsonObj['fingerprintCookie'] = String(fingerprintCookieValue);
}
//
// END - added to insert fingerprint cookie in session
//

if(window.XMLHttpRequest) {
ajaxRequest = new XMLHttpRequest();
} else {
ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
}