Skip to content

Conversation

manaswii
Copy link

flask login was having many issues for me, it kept logging in and out, sessions were inconsistent.
This fixed it for me,
source-https://stackoverflow.com/questions/39684364/heroku-gunicorn-flask-login-is-not-working-properly?rq=1

flask login was having many issues for me, it kept logging in and out, sessions were inconsistent. 
This fixed it for me, 
source-https://stackoverflow.com/questions/39684364/heroku-gunicorn-flask-login-is-not-working-properly?rq=1
@dmalan
Copy link
Member

dmalan commented May 26, 2022

@manaswii, do you have precisely the below lines in your app.py or something different?

app.config["SESSION_PERMANENT"] = False
app.config["SESSION_TYPE"] = "filesystem"
Session(app)

@manaswii
Copy link
Author

manaswii commented Sep 13, 2022

@dmalan
This is the exact excerpt from my project

app.config["SESSION_FILE_DIR"] = mkdtemp()
app.config["SESSION_PERMANENT"] = False
app.config["SESSION_TYPE"] = "filesystem"
Session(app)

@cs50 cs50 deleted a comment from maxgbaydin Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants