RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in