remove saved old password from browser after passw

2019-08-08 20:02发布

I'm implementing a password change feature in my web application. The old password is already saved by the browser for auto login . How can I replace it with the new password when the user login next time? I use jsp and dojo in the view part. With servlets and spring framework.

2条回答
可以哭但决不认输i
2楼-- · 2019-08-08 20:38

I'm assuming that you've used a cookie to store their login details, so that you can automatically log them in the next time they visit your web application. As part of your password change functionality, you'll want to either remove the cookie (forcing them to login again next time they visit, using their new details - this login should then create the cookie for future visits) or modify the cookie to store the updated login details (so that they continue to be logged into your web application automatically).

查看更多
▲ chillily
3楼-- · 2019-08-08 20:49

This is handled by the actual browser, you don't have access to that sort of thing with Javascript. Most browsers that store your password will also ask you to update your password if you ever successfully login with a password other than what they have stored.

查看更多
登录 后发表回答