i'm using asp.net mvc form authentication and storing thro' setauthcokkie();
how can i get the logged in user information in my index or any controller.
i'm using asp.net mvc form authentication and storing thro' setauthcokkie();
how can i get the logged in user information in my index or any controller.
Each controller has User property from which you can get the logged in user information. The same is true for your views -- ViewPage has a User property.