Setting up multi-device/browser session tracking for Devise
An approach for allowing users to view all logged in sessions and terminate other sessions from the current one.
The other day, I wanted to set up a session tracking feature in my app to allow users to be able to know how many devices they were logged in from. The requirements for this feature would allow users to:
- See a list of devices that currently has an active session
- View the requesting IP address of these sessions
- Terminate other sessions
Here’s the full post on the approach in implementing this: https://rails.substack.com/p/setting-up-multi-devicebrowser-session
Post a comment