Skip to content

Add Session Timeout #3623

@rpwils

Description

@rpwils

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if any
  • I have reproduced the issue with at least the latest released version of superset
  • I have checked the issue tracker for the same issue and I haven't found one similar

Superset version - 19.1

Would like to have the ability to set the user session timeout in the the config. Would adding something like this to the Init.py file to an acceptable way? Maybe this can be added to the project.

from datetime import timedelta

@app.before_request
def make_session_permanent():
appbuilder.get_session.permanent = True
app.permanent_session_lifetime = timedelta(minutes=USER_SESSION_TIMEOUT)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions