Reputation: 20436
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.
Upvotes: 1
Views: 131
Reputation: 532505
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.
Upvotes: 2