I want current loged in UserId
How do I get the current user inside a controller class in ASP.NET MVC?
home / developersection / forums / get current user id in mvc
I want current loged in UserId
How do I get the current user inside a controller class in ASP.NET MVC?
lukenlow lukenlow
27-Apr-2018Anonymous User
20-Apr-2018if you are using web security then you can get current user id by this code
WebSecurity.CurrentUserId