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

  • Home
  • SEARCH
  • 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 8568685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:09:58+00:00 2026-06-11T18:09:58+00:00

I am using ASP.NET and C#.While login, if the user checked remember password then

  • 0

I am using ASP.NET and C#.While login, if the user checked remember password then i’m storing it in a cookie.So if they login for nexttime it will be displayed in password field.

This is the code i’m using for creating cookie.

                HttpCookie cookie = new HttpCookie("user");
                cookie.Values.Add("username", t_uname.Text);
                cookie.Values.Add("password", t_pass.Text);
                Response.Cookies.Add(cookie);

So while login for nexttime i am using this.

                t_uname.Text = HttpContext.Current.Request.Cookies["user"]["username"].ToString();
                string pass= HttpContext.Current.Request.Cookies["user"]["password"].ToString();
                t_pass.Attributes.Add("value", pass);

So instead of this i need to display the password in password field after typing the username.

Thanks..

  • 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-06-11T18:09:59+00:00Added an answer on June 11, 2026 at 6:09 pm

    Do NOT store passwords in cookies! Cookies are plain text files, which means your users’ cookies will get stolen and accounts will be hijacked.

    Why are you not using the built in Authentication services provided in ASP.NET? It’s pretty easy to do.

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

Sidebar

Related Questions

I'm using the ASP.Net Login control to login a web application. When the user
I've been using ASP.NET MVC for a little while now and seem to find
I've been using the ASP.NET Ajax Control Toolkit Slideshow extender and while it works,
I have problem while using jquery maskedinput with asp.net textbox. I have a check
I'm using .NET 3.5 SP1 in ASP.NET MVC application. While using ObjectContext with Http
In my asp.net MVC app, I'm using a HTML text input, while I apply
I am using Thickbox 3.1(by cody lindley) in my asp.net application. While closing thickbox
Using ASP.NET 3.5 and jQuery UI. When a user clicks the Search button, a
Imagine the following scenario. User visits a site A (ASP.NET), authenticates using ADFS and
I've just started out using ASP.NET MVC and TDD. I've read that while unit

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.