Automatic member logout if same member ID is used to login on a new device.

Hi, I wanted to know if its possible to automatically log out a member from a device on which he or she previously logged in when they try to login to a new device or browser. Basically like how WhatsApp allows only single device log in.
Thanks in advance.

Hi,
I have an idea for managing this allowed devices functionality.
You can manage a collection that describes the current device associated with the user, save a secret key in the device’s storage using wix-storage , and save it also in the collection, when a user tries to log-in check if he has the cookie associated with that user, if not, you can use the logout() function .
Note that user might get his cookies deleted so he should have an option to log in again without the cookie.

Good luck :slight_smile:
Or

Hi Or, thanks a lot for your suggestion I will definitely try this out and let you know about the outcomes. Have a nice day.

Hi Guys,

Did you implement this? can you share the code you’ve used and where did you use it?

Thanks in advance.

Any luck on this?

Hi @eshwara380 Thanks for this post. Any luck implementing it? Any feedback or other suggestions?