ASP.Net Stored Password Expiring

  • Thread starter Thread starter Elroyskimms
  • Start date Start date
E

Elroyskimms

The form has two text fields... one called txtEmail and one called
txtPassword. The username is the email address (txtEmail) and the
password is txtPassword.

Storing cookie using the following code:
Response.Cookies("Email").Value = txtEMail.Text
Response.Cookies("Email").Expires = DateTime.Now.AddDays(30)

The cookie is accessed using the following code:
txtEMail.Text = Request.Cookies("Email").Value

The cookie info is retrieved properly... I don't think there is an
issue there. When I access the page, I am prompted to store the
password (as I should be). If I login again, the password is retrieved
properly by IE (v6.0). But 24 hours later, if I attempt to login, the
stored password is not retrieved. The stored cookie info. is retrieved
properly but the password field is not populated. Is there something
else that needs to be done to get IE to store the password properly?
 
Hi,

Programmatically you can;t assign value to password fields. aka (HTML <input
type=password>)

A quick workaround trick,
onLoad event of html use javascript to paste retrieved password into
password textbox.

Regards,
Jignesh Desai
www.dotnetjini.com
 
I think you misunderstood the problem. I am not trying to populate the
password textbox programmatically . IE is storing the password
automatically, but after 24 hours, the password is no longer available
and I am prompted to save it again. Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Cookies problem 1
Cookie problem 8
ASP.NET 2.0 Cookies 1
Cookies problem (again) 2
Cookies Count 2
Can't Update of Cookie 2
What is the proper way to use cookies? 1
How to make login script case sensitive 1

Back
Top