I am working with an application that I am writing out a cookie with a encrypted username and password. However, I cannot get the cookie to write out, or at least I cannot tell that I am writing it, as I am unable to read it.
The code writes the cookie and then redirects to a new page on the same server, but in a different directory.
Any help would be greatly appreciated.
Thanks,
Patrick
The code writes the cookie and then redirects to a new page on the same server, but in a different directory.
Code:
string UserName = Escape(LMSUserName);
string PassWord = Escape(lmsPWD);
HttpCookie SSOcookie = new HttpCookie("SSO",UserName + "," + PassWord);
SSOcookie.Path = "../../../stc/allusers";
Response.Cookies.Add(SSOcookie);
Response.Redirect("../../../stc/allusers");
Response.End();
Any help would be greatly appreciated.
Thanks,
Patrick