Chrome is saving password but not in conjunction with username!
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");
}
}
}
RazaPosted Mar 8, 2010, 6:51 AM
try to maintain the "Sessions" while navigating between the pages.
When you press the submit button, put the values of "user name" and "password" in session, retrive it in the new page and once you press back button you will be able to load the page with the actuall values in the load() function of the page afetr retirving them from session objects