asp.net mvc 4 - Storing user authentication in Session -


when user logs site:

session["user"] = new user(name); 

to see if visitor page logged in:

if(session["user"] != null) {     //session["user"].name logged in! } 

is secure? client have way of modifying session variables?

please see answer here.

the short answer is: forms authentication more secure.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -