DreamCodeer
DreamCodeer

Reputation: 403

Get django user session objects from user email/id

How to get django user session objects from user id or email?

I am stuck with a problem for a particular user, he gets logged out from the system very frequently. I need to get the list of session objects for a particular user.

Upvotes: 2

Views: 357

Answers (1)

Eugene Soldatov
Eugene Soldatov

Reputation: 10145

Session object is accessible by session_key, which is random string. It's generated on server side and stored in client side in Cookie. So it's impossible to identify user by session.

Upvotes: 2

Related Questions