Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to ignore certain URL paths when determining whether there is website activity #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ewoudenberg-kasisto
Copy link

Use Case

On some websites, regular "polling" accesses may be made by browser code to certain paths within the website. This will cause the session activity timer to incorrectly assume that there is still user activity when in fact the activity stems only from browser code. This change allows the session-timeout code to ignore user-specified paths.

The paths are configured as a single Regular Expression string in the SESSION_ACTIVITY_IGNORED_PATHS_REGEX variable in settings.py. Multiple paths are separated by the "|" (regex "or) character.

See the example in the Readme file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant