Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: RedirectFromLoginPage


Message #1 by <wrox@d...> on Mon, 22 Oct 2001 20:48:50 +0100
Hi,

 

Does anyone know why the RedirectFromLoginPage does not seem to work

with certain browsers seems to work fine with ie6 but not ie5.  My code

snippet is below.  

 

Thanks

 

David

 

FormsAuthentication.SetAuthCookie(us.UserName,true);

Response.Cookies["UserID"].Value = userID;                        

Response.Cookies["UserID"].Expires = DateTime.Now.AddMonths(1);

Response.Cookies["Name"].Value = us.UserName;

Response.Cookies["Name"].Expires = DateTime.Now.AddMonths(1);

FormsAuthentication.RedirectFromLoginPage(us.UserName,true);


  Return to Index