Cookies are set but not displayed?
girl
girl 2017-08-18 15:00:40
0
2
1423

document.cookie="userId=828";

document.cookie="userName=hulk";

//Get cookie string

var strCookie=document.cookie;

//Cut multiple cookies into multiple name/value pairs

var arrCookie=strCookie.split("; ");

var userId;

//Traverse the cookie array and process each cookie pair

for(var i=0;i<arrCookie.length;i){

var arr=arrCookie[i].split("=");

//Find the cookie named userId and return its value

if("userId"==arr [0]){

userId=arr[1];

break;

}

}

alert(userId) ;


girl
girl

reply all(2)
phpcn_u15277

Cleared cache, still not working

ringa_lee

Check if there is browser cache

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template