cookie generation and locale/language settings
-
hi all, i have strange issue and it may be dumb question, i am using below code in asp.net 1.1 to generate the cookie it is generated on some computer using locale(En-us),but cookie is not generated on some computers which have danish locale. My question "is cookie generation depend upon the locale/Regional setting/Language" below is the code to generate
string strCVal="2001" + "@ENG"; for(int i=0; i<Request.Cookies.Count; i++){ Request.Cookies[i].Expires=DateTime.Now.AddYears(-30); } try { Response.Cookies["SCID"].Expires=DateTime.Now.AddDays(-3); } catch{} HttpCookie aCookie = new HttpCookie("SCID"); aCookie.Values[strCVal] = strCVal; aCookie.Expires = DateTime.Now.AddMinutes(5); Response.Cookies.Add(aCookie);
that code does not throw any exception as well.Regards. Tasleem Arif