Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 5 of 5

This is a discussion on Chrome saves password, but not linked to a username!!!???? within the Chrome Troubleshooting section, part of the Google Chrome category: Hi All, I'm creating a webapp (Using C#/ASP.net) and when I setup the login page, Chrome saves the password. The ...


  1. #1
    all4peace is offline Junior Member
    Join Date
    Aug 2009
    Posts
    3

    Default Chrome saves password, but not linked to a username!!!????

    Hi All,

    I'm creating a webapp (Using C#/ASP.net) and when I setup the login page, Chrome saves the password. The problem is that the password is not tied to a user name. I don't know how to explain it, but here's the scenario:

    1- There're 2 text boxes and a submit button. The first button test is "Email Address". The second one is the password text box.

    2- You type something in the 1st one: (e.g. John). Password: Doe. and hit submit.

    3- Chrome asks: Do you want to save the password? Say yes...

    4- Submit button directs you to another page. Now, try to return back to the same page (Click back for example).

    5- You will see the login box is empty, but the password is not!!!

    WHY? WHY? (I'm losing my mind of course.) Anyways, I tried to set the value to blank. It doesn't work!



    I attached the code if you are interested.

    Here is the aspx page and code below it:

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="test._Default" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title></title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <asp:TextBox ID="example1" runat="server" Text="Email Address"></asp:TextBox>
    <asp:TextBox ID="example2" runat="server" Text="Email Address" TextMode="Password"></asp:TextBox>
    <asp:Button ID="example3" runat="server" Text="Click me" OnClick="example3_Click" />
    </div>
    </form>
    </body>
    </html>







    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    namespace test
    {
    public partial class _Default : System.Web.UI.Page
    {
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void example3_Click(object sender, EventArgs e)
    {
    FormsAuthentication.SetAuthCookie(example1.Text, false);
    Response.Redirect("Webform1.aspx");
    }
    }
    }

  2. #2
    sulasno's Avatar
    sulasno is offline Super Moderator
    Join Date
    Sep 2008
    Location
    Bangkok
    Posts
    1,759

    Default

    have you try with another browser?

  3. #3
    all4peace is offline Junior Member
    Join Date
    Aug 2009
    Posts
    3

    Default

    Yes I did, IE worked fine.

    Update: I downloaded Firefox, and it has the same issue. I guess I am doing something wrong!!! Is it possible because the text box has default text "Email Address"?
    Last edited by all4peace; 08-30-2009 at 05:35 AM.

  4. #4
    all4peace is offline Junior Member
    Join Date
    Aug 2009
    Posts
    3

    Default Partial Solution

    Hi all,

    Partial Solution

    I did more research and determined the problem. The issue is that my test box already has some default text ("Email Address"). Chrome (Or firefox) save the username/password, and when the page is post back, Chrome would put the username and password in the two text boxes. After that, my code would put the "Email Address". So you will always see "Email Address" with some weird password.

    I didn't want to deal with the headache and just disable the password saving. I put autocomplete="off"

  5. #5
    Benni is offline Senior Member
    Join Date
    May 2009
    Posts
    354

    Default

    I havn't playd with asp.net a few years, but as fare as I remember this is caused by you havnt (or have) enabled view state... So on the textbox you must have a propertie called EnableViewState (or something like that) that you must set to true/false

Similar Threads

  1. Replies: 15
    Last Post: 02-16-2011, 04:46 PM
  2. abilty to set password to your history.
    By cactusfrog in forum Plugins Development
    Replies: 1
    Last Post: 06-26-2009, 10:57 AM
  3. Need password mgr/autofill ASAP
    By frankmaris in forum Chrome Talk
    Replies: 0
    Last Post: 02-08-2009, 04:04 PM
  4. can not save proxy password
    By larison in forum Bugs and Vulnerabilities
    Replies: 1
    Last Post: 09-22-2008, 01:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •