Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4234172
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:18:59+00:00 2026-05-21T02:18:59+00:00

What are some of the common methods to do simple user validation (account login)?

  • 0

What are some of the common methods to do simple user validation (account login)?

Also, can you have different authentication schemes per area?

Edit

I am creating an eCommerce site that will need to have protected actions per user. So how would one go about doing this? It will need to be able to let only authenticated users access their information.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T02:19:00+00:00Added an answer on May 21, 2026 at 2:19 am

    You have several options when it comes to doing authentication in MVC:

    • The built-it MVC Forms Authentication (Tutorial available here and here)
    • Using Forms Authentication with Cookies in MVC3 (Link here)
    • Using Windows Authentication (Learn more here…)
    • Mixed Mode Authentication (Using Windows / Forms Authentication together.)

    The built in Forms Authentication can allow you to limit access to different areas of your application based on Role, User among other things and it is quite easy to implement using the [Authorize] attribute.

    The following would require the user be logged in:

    [Authorize]
    public ActionResult YourActionNameGoesHere()
    {
    }
    

    Likewise, the following would require the user be logged in AND be an Administrator:

    [Authorize(Roles="Administrator")]
    public ActionResult YourActionNameGoesHere()
    {
    }
    

    Those were just a few methods of accomplishing it, as you can see there are MANY different methods of accomplishing this – I hope this might have shed a bit of light in helping you decide.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 Java EE applications which need to share some common user related
My C++ application stores some common user data in %CSIDL_COMMON_APPDATA%\Company\Product . I want to
I have a project where there are multiple applications that have some common configuration
I am working on my second CI application. I have created some simple CRUD
Thus for used base class for some commom reusable methods in every page of
What are some common , real world examples of using the Builder Pattern? What
I want to put some common information in my MasterPage to be shown on
I refactored some common properties into a base class and immediately my model updates
I had a class with some common error handling code, and I wanted to
I'm wondering what are some common misconceptions of jQuery? I've found there is a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.