Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to force a customer's login password not saved by the brower


ganxh

Recommended Posts

Posted

Since most of my customers use public computers, I want the login password not saved even the customers click the "save password" button by mistake.

 

How can I do this?

Posted

There's absolutely no way to truly prevent a browser from saving any information it wants. However, I believe most browsers honor the autocomplete attribute for the form tag.

 

 

Line 104 of login.php, change

 

<td width="100%" valign="top"><?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">

 

to

 

<td width="100%" valign="top"><?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL'), 'post', 'autocomplete="off"'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">

Contributions

 

Discount Coupon Codes

Donations

Posted

I tried, and it works. I appreciate it.

 

The only regret is that neither the email address nor the password is saved. If I want the email address to be saved, how can I do?

Posted

As far as I know, it's either all or nothing.

 

There might be some sort of javascript solution that I haven't heard. Google around a bit for something like:

 

javascript no autocomplete fields

Contributions

 

Discount Coupon Codes

Donations

Posted
As far as I know, it's either all or nothing.

 

There might be some sort of javascript solution that I haven't heard. Google around a bit for something like:

 

javascript no autocomplete fields

 

Thanks, I'll try to figure it out.

 

My purpose is to make the login model the same as the one used by Hotmail.com. That is, a customer has three options when login: Save e-mail address and password, Save e-mail address, Always ask for e-mail address and password.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...