Get Current user id in mvc

Total Post:9

Points:63
 855  View(s)
Ratings:
Rate this:

I want current loged in UserId 

How do I get the current user inside a controller class in ASP.NET MVC?

  1. Post:3

    Points:21
    Re: Get Current user id in mvc

    if you are using web security then you can get current user id by this code

    WebSecurity.CurrentUserId

  1. Post:4

    Points:28
    Re: Get Current user id in mvc

    Post is removed by the Admin.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!