Django active sessions

2019-03-22 Thread Alejandro Martin Herve
I would like to know if there is a way to detect if a session is no longer active. I have a Django web app that when a user logs in, his session is set to expire at browser close request.session.set_expiry(0) this will close the session at browser close efectively but his expire time gets a de

Django active sessions

2019-03-22 Thread Alejandro Martin Herve
Hi, I would like to know if there is a way to detect if a session in no longer active, I'll explain better. I have a setup in my web app where when a user logs in automatically his session is set to expire at browser close: request.session.set_expiry(0) But despite this work effectively, the s