Hello,

I want to logout a user from application when the application tab is closed.

I have tried with creating a custom middleware class and calling 
set_expiry(0) function inside, according to Django documentation, but I 
when I open the application again in a new tab the user is still logged in.

Does anybody have an idea how to implement this functionality?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/30be204d-6c10-47d0-ab7c-de22533d5bca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to