0

I have a simple php login form. When I login to the site, Firefox remember my credentials which is very useful in many cases. However, in some cases e.g. when user clicked Logout, I want Firefox to forget these credentials. So next time when I turn on my PC and open the site, my login form should not be prefilled with my credentials.

Can I clear the credentials saved by Firefox (or any other browser) via JavaScript or server side code?

jww
  • 97,681
  • 90
  • 411
  • 885
Haris ur Rehman
  • 2,593
  • 30
  • 41
  • possible duplicate of [Don't save form data over https](http://stackoverflow.com/questions/2504307/dont-save-form-data-over-https) – Jeremy J Starcher Aug 16 '14 at 20:00
  • @JeremyJStarcher I had like to user Remember Me feature in certain cases. I just want to clear that saved data when I press some button. The question you mentioned doesn't answer this. – Haris ur Rehman Aug 16 '14 at 20:19
  • @Jeremy - I'm not sure this is a dup. For example, does OP want `autocomplete="on"` until the user logs out? At which point, he effectively wants `autocomplete="off"` and the browser to forget the saved credentials? – jww Aug 17 '14 at 09:05

0 Answers0