Santhosh
Santhosh

Reputation: 20436

form authentication info in asp.net mvc

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

Answers (1)

tvanfosson
tvanfosson

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

Related Questions