Session is not null, but not logged in

0

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

    
asked by anonymous 01.11.2015 / 21:43

0 answers