I am facing issue in Django, I want to prevent multiple device login in Django, I am creating custom session and setting True & False when user is login or logout.
When i am closing browser still it is in True state in back-end , I want to update it on browser close.
Any ideas how to solve it in a best way.