Not run my redirect code please help me.
$(window).on("beforeunload", function () {
debugger;
var tid = getCookie();
console.log("TestId =" + tid);
if (tid != "") {
setTimeout(function () {
window.location = "sessionout.aspx";
//window.location.href = "http://www.google.com;
}, 3000);
} else {
console.log("Not Run");
}
})