Author: jas05 | Posted on: 11/6/2009 4:32:01 AM | Views : 419

Hi Guys
I am trying to store the user credentials in forms authentication ticket (Since people said its not a good thing to store password in  cookies)
And so i am able to create the new forms authentication ticket,
But i dont know how to check that every time the page is loaded and another problem is  i am unable to divert the user to next page,
Can some body please check my code...
and suggest me where iam going wrong.
Many Thanks
My Login page code...
 
protected void Page_Load(object sender, EventArgs e) { if (HttpContext.Current.User.Identity.IsAuthenticated) { Response.Redirect("Users.aspx"); } else if(Request.Cookies["Background27"] != null) { HttpCookie aCookie = Request.Cookies["Background27& ...

Go to the complete details ...