I'm trying to authenticate a page so only a person who is logged in can access a page. I'm using this code.
if (Session["user"] == null)
RedirectToAction("Login", "Usuario");
But not logged in, it does not enter this if, so I understand that my application creates a SESSION , so it is not NULL