bouncer icon indicating copy to clipboard operation
bouncer copied to clipboard

Consider adding client-specific information to session data

Open ianwalter opened this issue 10 years ago • 3 comments
trafficstars

This would allow an application to provide their users with an overview of their active sessions, like GitHub does in Settings > Security.

Data could include:

  • IP Adress
  • Location
  • Browser
  • Operating System
  • Sign in timestamp

ianwalter avatar Oct 22 '15 15:10 ianwalter

Hi,

Looking into your project and I'm wondering if you already thought about an approach for that? I'm very not familiar with redis and right now I thought about stringifying a json representation of the data and use it to sign the token. That's way hacky :)

qur2 avatar Aug 10 '16 10:08 qur2

Hi, sorry for the late response, I was planning to save a JSON string to Redis with each session object.

ianwalter avatar Aug 31 '16 03:08 ianwalter

Hi, no problem. For now, my project doesn't need redis so I'm storing session in DB. I'll keep in mind your recommendation to easily migrate if need be.

qur2 avatar Sep 11 '16 19:09 qur2