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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:19:22+00:00 2026-05-15T07:19:22+00:00

I have created a site in ASP.NET 3.5 & I have only 2 or

  • 0

I have created a site in ASP.NET 3.5 & I have only 2 or 3 user login IDs who can login to the website.

What would be the best way to save these login details? Which of these approaches, or others, would be most suitable?

  1. Using Forms Authentication, and saving credentials (username and password) in web.config
  2. to create a text file in directory and modify it

Which approach is best from a security and maintenance perspective? What other approaches are suitable for a login system for ASP.NET?

  • 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-15T07:19:23+00:00Added an answer on May 15, 2026 at 7:19 am

    Do you already have a database? If so, use forms authentication and ASP.NET membership like everyone says. It is real simple to integrate into your current database (assuming it’s sql server – i don’t know about others). I realize adding a DB for 2 or 3 users isn’t always an option due to budget or whatever so you can use forms authentication and store the user in the web.config. I’ve done this in the past and it is very simple.

    Your web.config will look like:

    <authentication mode="Forms">
        <forms loginUrl="Login.aspx">
            <credentials passwordFormat="Clear">
                <user name="myUser" password="password" />
            </credentials>
        </forms>
    </authentication>
    

    Then you can use the built in login controls. If you do it this way you need to implement the Autenticate event.

        protected void Login1_Authenticate(object sender, System.Web.UI.WebControls.AuthenticateEventArgs e)
        {
            string UserName = Login1.UserName;
            string Password = Login1.Password;
    
            if (FormsAuthentication.Authenticate(UserName, Password))
            {
                e.Authenticated = true;
            }
            else
            {
                e.Authenticated = false;
            }
        }
    

    Of course this isn’t the most secure way to go about this, and you’ll probably want to at least look at encrypting the credentials in the web.config, but it is simple and works when a database isn’t an option.

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

Sidebar

Related Questions

I have created a basic site using ASP.NET routing according to Mike Ormond's example
I have uploaded a site built with asp.net 2.0 in a sub directory created
I have an ASP.net site that is essentially just a user interface for a
I have a asp.net website in the umbraco cms, there I can use razor
I have created a site using asp.net mvc3 and I have some action in
I have created a asp.net Dynamic data linq to sql web site. After creating
I have a SharePoint2010 site that I have created an ASP.NET menu control for.
I have created a website using ASP.Net and running on port 8080. When server
I have created an asp.net site which works fine in internet explorer but for
I have created a blank asp.net website consisting of a blank default.aspx page, its

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.