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 58195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:48:36+00:00 2026-05-10T17:48:36+00:00

I want to make a login system using ASP.NET (MVC). On the internet, I

  • 0

I want to make a login system using ASP.NET (MVC).

On the internet, I found some bad examples that involved SQL in Click events. Other information pointed to the ASP.NET built-in membership provider.

However, I want to roll my own. I don’t want to use the built-in membership provider, as it only seems to work on MS SQL, and I don’t like the idea of having a few foreign tables in my database.

I could probably think of something, but I need a few pointers in the right direction. It does not have to be high-security, but just regular common-sense security.

And I have a few direct questions:

  1. A lot of systems seem to have the Session ID stored in a user table. I guess this is to tie a session to a user to prevent hijacking. Do check this every time a user enters a page? And what do I do if the session expires?

  2. Hashing, salting, what does it do? I know of MD5 hashing and I have used it before. But not salting.

  3. Best practices for cookies?

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-10T17:48:36+00:00Added an answer on May 10, 2026 at 5:48 pm

    I dont know about best practices but I can tell you what I do. Its not hitech security but it does the job.

    I use forms authentication. I receive the password secured with ssl via a textbox on the login page. I take that password and hash it. (Hashing is like one way encryption, you can get hash code that cant be reversed back to the password). I take that hash and compare it to the users hash in the database. If the hash’s match i use asp.nets built in authentication handling, which handles cookies for me.

    The FormsAuthentication class has methods available to do this fo you, such as SetAuthCookie and RedirectFromLogin. they will set the cookie and mark them as authenticated. The cookie asp.net uses is encrypted. I cant speak for its security level though, but its in fairly common use.

    In my class i do the password check and use formsauth to handle the rest:

    if(SecurityHelper.LoginUser(txtUsername.Text, txtPassword.Text)) {         FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, true); } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is the best way to make a user-login system using PHP? I want
I want to make a login system using cookies/sessions but I'm not sure what
For my first ASP.NET MVC 3 application, I'm using the aspnet_Users and aspnet_Roles tables
I want to make user Login Authentication in my web application. I am using
I would like to make a simple user login/registration system using PHP and mysql.
I want to make myself a simple webapp using vb.net.I am trying to make
I want to make a login to twitter by myself programmatically. Is it possible
I am trying to make login with jsf. I want to hide login panel
I want to make a program in C# which will go/login and do stuff
I want make datetimepicker in my project. Using jquery how it is possible? I

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.