3

I have a table in database called Customer, I want to enable them to log in website? Is there any good practice to suggest? Thanks!

1 Answer 1

1

Enable forms authentication in web.config.

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

Here is a write up for the forms authentication

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.