A little javascript and middleware work together to ensure that the user was active during the past X minutes in any tab he has open. Otherwise, display a warning leaving a couple of minutes to show any kind of activity like moving the mouse. Otherwise, logout the user.
My project uses your package and it would be great to have a release with this PR! https://github.com/yourlabs/django-session-security/pull/81
(Just wanted to makes this as a tracking issue, or ping yall in case it slipped someone's mind!)