Click here to Skip to main content
15,901,368 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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.
Posted

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900