DEV Community

Discussion on: Prevent Multiple Sessions for a User in your Django Application

Collapse
 
fleepgeek profile image
Emmanuel Okiche

Did that for demonstration purpose just to show how middlewares work and how you could use them.
You could just trigger the check in a signal when the user logs in and it would still give you the same result.
I stated in the conclusion that this might not be the perfect solution for such feature.
Thanks for your comment and i'm glad you spotted that.
You're really smart.

All the best