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

Expire sessions after 6 hours of inactivity #5159

Merged
merged 1 commit into from May 10, 2021
Merged

Conversation

rauchy
Copy link
Contributor

@rauchy rauchy commented Sep 9, 2020

What type of PR is this? (check all applicable)

  • Feature

Description

Redash sessions don't expire and when they do expire - they refresh automatically because there's no way for users to opt out of "remember me" when they login.

This PR lets users opt out of "remember me" when they log in, effectively forcing their session to end (and not refresh) after 6 hours of inactivity. Every request extends the session by another 6 hours.

If users pick "Remember me", sessions would still expire, but get refreshed for up to 31 days, then they would have to log in again.
If they uncheck "Remember me", sessions would expire after 6 hours and would require a login.

@rauchy rauchy requested a review from arikfr September 9, 2020 20:48
Copy link
Contributor

@susodapop susodapop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Tested these changes locally 👍

@susodapop
Copy link
Contributor

does this require an application rebuild or will this be implemented after editing the files?

You won't need to rebuild the containers. Just bounce the server so it can refresh its environment variables.

@susodapop susodapop merged commit 7ec86cf into master May 10, 2021
@susodapop susodapop deleted the session-expiration branch May 10, 2021 18:36
lotreal added a commit to lotreal/redash that referenced this pull request Jun 22, 2021
* master:
  remove redundant fields from slack alert destination (getredash#5514)
  README.md: Add TiDB to the Supported Data Sources (getredash#5477)
  Refine Dockerfile caching (getredash#5484)
  fix big_query.py google api import error (getredash#5482)
  Use the correct rq connection in `get_queues_status` (getredash#5491)
  Fixing failure report rendering (getredash#5492)
  SFS-001: Adding support for the optional host connection property (getredash#5490)
  Expire sessions after 6 hours of inactivity (getredash#5159)
  use ptpython instead of standard python shell (getredash#5483)
  Adds rate limit to /forgot. (getredash#5425)
  Athena: skip tables with no StorageDescriptor (getredash#5447)
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.

None yet

3 participants