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

[Session] How to set session timeout? #5149

Closed
3 tasks done
qin4zhang opened this issue Jun 6, 2018 · 5 comments
Closed
3 tasks done

[Session] How to set session timeout? #5149

qin4zhang opened this issue Jun 6, 2018 · 5 comments

Comments

@qin4zhang
Copy link

qin4zhang commented Jun 6, 2018

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

0.25.5

Expected results

I could set session timeout in config.py, and when the time is out , user should login again.

Actual results

I don't know how to set it

Steps to reproduce

What's your advice?

@mistercrunch
Copy link
Member

We use flask-appbuilder which uses flask-login, so all you have to do is add these configurations to your superset_config.py:
https://flask-login.readthedocs.io/en/latest/#cookie-settings

If you have time please add an FAQ entry in the docs!

@qin4zhang
Copy link
Author

@mistercrunch OK!

@hushaoqing
Copy link
Contributor

hushaoqing commented May 30, 2019

set PERMANENT_SESSION_LIFETIME in the Superset config file

@Ritesh205
Copy link

set PERMANENT_SESSION_LIFETIME in the Superset config file

Is there a way where we can set some alerts before the session timeout ?

@shawnzhu
Copy link
Contributor

See context from https://stackoverflow.com/questions/34118093/flask-permanent-session-where-to-define-them

In superset, you can use FLASK_APP_MUTATOR to enable session.permanent = True to make Flask setup session expiration time. see my PR #16286

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

No branches or pull requests

5 participants