DEV Community

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

Collapse
 
dhruv354 profile image
dhruv354

request.user.is_authenticated always coming as false for me so i am not going inside that middleware what should i do

Collapse
 
fleepgeek profile image
Emmanuel Okiche • Edited

It means you're not logged in.
To confirm if you're loggedn in print out request.user.
If it returns AnonymousUser then it means you're not logged in correctly.

Collapse
 
dhruv354 profile image
dhruv354

Yes that was my mistake i solved , please help me in my last error. Error is that my signals are not firing i had added the signals as mentioned, also i imported signals in apps.py and added my app in settings.py but they are not working please help me in this issue