开发者

remove saved old password from browser after password change

I'm implementing a password change feature in my web application. The old password is alr开发者_Go百科eady 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.


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.


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜