Skip to content

Add new setting to expire the user session #139

@srus

Description

@srus

I think it would be useful to add a new setting to expire the user session. In combination with MAINTENANCE_MODE_IGNORE_ANONYMOUS_USER = True, you would let a logged user navigate the site as an anonymous user. It would be simple to implement, basically just adding the following under the middleware.py module:

if settings.MAINTENANCE_MODE_EXPIRE_SESSION and request.user.is_authenticated():
    logout(request)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions