Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix yourlabs#89: session_security breaks "End Session" on the current…
… session when using user_sessions Add a new parameter, SESSION_SECURITY_PASSIVE_URL_NAMES, which takes a list of URL names to skip when performing session activity updates. This provides an easy method for parameterized URLs to be skipped. The existing SESSION_SECURITY_PASSIVE_URLS parameter continues to work with static path names. For example, if you have the following URL from the user_sessions app: /account/sessions/<session_id>/delete/ You can skip the activity tracker by adding the following to settings.py: SESSION_SECURITY_PASSIVE_URL_NAMES = ['session_delete'] This currently only handles direct URL names and can be updated in the future to handled fully namespaced and instanced URL names.
- Loading branch information