在更改密码的情况下,从应用程序自动注销而无任何移动 [英] Automatic logout from application without any movement in case of change password

查看:72
本文介绍了在更改密码的情况下,从应用程序自动注销而无任何移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,





任何用户使用不同的浏览器或系统登录我的应用程序。他想改变密码。一旦他更改了密码,他就必须自动从所有浏览器和系统注销,无需执行任何操作并单击。

Hi All,


Any user logins in my application with different-2 browsers or systems. And he wants to change the password. Once he'll change his password then he must be log-out from all browser's and systems automatically without any performing action and click.

推荐答案

如何执行此操作特定于您用于验证尚未说明的用户的方法。您无法将人员记录下来,但您可以针对每个用户存储GUID并将该GUID存储在cookie中。每次更改密码时,您都会更改GUID并将新GUID存储在cookie中。每次他们请求页面时,检查他们发送的GUID是否与他们的用户匹配当前的GUID。如果不同,他们会在其他地方更改密码,以便您可以将其注销并重定向到登录页面。
How you do this is going to be specific to the method you use to authenticate users which you haven't said. You can't log people out, but you could store a GUID against each user and store that GUID in a cookie. Every time they change their password you change the GUID and store the new GUID in the cookie. Every time they request a page, check the GUID they send matches the current one against their user. If it is different they have changed their password elsewhere so you can log them out and redirect to the login page.


这篇关于在更改密码的情况下,从应用程序自动注销而无任何移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆