Hi there
When i serialize a value and stored in a cookie, i can see cookie text file in Cookies folder. But if i dont serialize that value, i can't see cookie text file.
There is my code:
(Serialize)
BinaryFormatter bf = new BinaryFormatter();
MemoryStream ms = new MemoryStream();
bf.Serialize(ms, "111");
byte[] bArr = ms.ToArray();
string sCookieVal = Convert.ToBase64String(bArr);
HttpCookie cook = new HttpCookie("cookieName");
cook.Value = sCookieVal;
cook.Expires = DateTime.Now.AddMinutes(20);
HttpContext.Current.Response.Cookies.Add(cook);
(unserialize)
HttpCookie cook = new HttpCookie("cookieName");
cook.Value = "111";
cook.Expires = DateTime.Now.AddMinutes(20);
HttpContext.Current.Response.Cookies.Add(cook);
Why i can't see unserialize value in cookies folder? Where is it stored ? A phsycal path or virtual path?
Thanks for your helps.