0

When a user logs into my site:

Session["User"] = new User(Name);

To see if a visitor to a page is logged in:

if(Session["User"] != null) {
    //Session["User"].Name is logged in!
}

Is this secure? Does the client have any way of modifying the Session variables?

Eric B
  • 4,367
  • 5
  • 33
  • 43

1 Answers1

0

Please see my answer here.

The short answer is: forms authentication is much more secure.

Community
  • 1
  • 1
John Wu
  • 50,556
  • 8
  • 44
  • 80