How to check if a user is registered on a website in ASP.NET MVC2?

I have a table in the Customer database, I want to include them to enter the site? Is there any good practice to suggest? Thank!

+3
source share
1 answer

Enable authentication in web.config.

Create a login page and in the login method, check the user. Use the FormsAuthentication class to set the authentication cookie.

Here is the entry for forms authentication

If you create an asp.net mvc site project in visual studio, you will see an authentication implementation.

+1
source

Source: https://habr.com/ru/post/1782143/


All Articles