T
ThunderMusic
Hi,
I have an application that must save a cookie on the client's machine. I use
this code and it doesn't work. Can someone tell me what's wrong with this
code please?
HttpCookie UserCookie = new HttpCookie("SomeCookieName");
UserCookie.Expires = DateTime.Now.AddYears(5);
UserCookie.Values.Add("UserName", UserName);
UserCookie.Values.Add("Pass", clsPassword.ConvertByteArrayTo0x(Pass));
Request.Cookies.Add(UserCookie);
I don't understand at all. For the last line I also tried
Request.Cookies.Set but didn't work either.
Thanks for the help
ThunderMusic
I have an application that must save a cookie on the client's machine. I use
this code and it doesn't work. Can someone tell me what's wrong with this
code please?
HttpCookie UserCookie = new HttpCookie("SomeCookieName");
UserCookie.Expires = DateTime.Now.AddYears(5);
UserCookie.Values.Add("UserName", UserName);
UserCookie.Values.Add("Pass", clsPassword.ConvertByteArrayTo0x(Pass));
Request.Cookies.Add(UserCookie);
I don't understand at all. For the last line I also tried
Request.Cookies.Set but didn't work either.
Thanks for the help
ThunderMusic