How can I get browser to prompt to save password?

前端 未结 20 1578
面向向阳花
面向向阳花 2020-11-22 16:20

Hey, I\'m working on a web app that has a login dialog that works like this:

  1. User clicks \"login\"
  2. Login form HTML is loaded with AJAX and displayed i
20条回答
  •  面向向阳花
    2020-11-22 16:30

    Not every browser (e.g. IE 6) has options to remember credentials.

    One thing you can do is to (once the user successfully logs in) store the user information via cookie and have a "Remember Me on this machine" option. That way, when the user comes again (even if he's logged off), your web application can retrieve the cookie and get the user information (user ID + Session ID) and allow him/her to carry on working.

    Hope this can be suggestive. :-)

提交回复
热议问题