Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookie Refuses to write and/or be read

Status
Not open for further replies.

pabowen

Programmer
Nov 6, 2002
95
US
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.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top