yourlabs / django-session-security

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.
http://django-session-security.rtfd.org
MIT License
309 stars 142 forks source link

Setting warning and expiration timeouts based on user pemissions #115

Closed monty700 closed 5 years ago

monty700 commented 5 years ago

I've been using this package with success. It was very easy to install and use.

I'd like to set longer warning and expiration timeouts if the logged in user is staff (request.user.is_staff) or a superuser (request.user.is_superuser).

Is there any way to do this with the current version? If not, I would appreciate this enhancement.

claytondaley commented 5 years ago

see #107. Is it no addressed?

monty700 commented 5 years ago

Ah yes, thank you.