Salam

Salam

  • NA
  • 6
  • 0

Chrome is saving password but not in conjunction with username!

Aug 29 2009 8:07 PM
Hi All, I'm creating a webapp 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's 2 text boxes and a submit button. The first button test is "Email Address". The second on 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- It takes you to another page. The return back to the same page (Click back for example). 5- You will see the first box is Email Address and the password is showing as well!!! WHY? WHY? (I'm losing my mind of course.) Anyways, I tried to set the value to blank. It doesn't work! Here is the aspx page and code below it: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="test._Default" %>
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"); } } }

Answers (1)