I am using django.auth.db connection and have created a table which contains username of a user who is logged in and when the user logged out manually (by clicking logout button) I am removing his/her username from that table. The problem arises when a user logged out due to session out and I am not able to remove his/her username from that table.
So I wanted to know that is there any way to detect when the users' session/cookies out so that I can remove his/her username from that table?