what is same c# code in javascript? -
httpcookie newcookie = request.cookies["cookie1"]; int count = (newcookie .values.keys.count) / 6; int keycount = (newcookie .values.keys.count); string val = httputility.urldecode(newcookie .values.getkey(i).tostring()); string str = newcookie .values.getkey(i).tostring(); // loop counter
i want use javascript cookie, there way use same code in javascript above c# code?
try like
set cookie : document.cookie = "username=; expires=thu, 01 jan 1970 00:00:00 gmt"; cookie : vat x = document.cookie ;
Comments
Post a Comment