Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Update heroku.md #123

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update heroku.md #123

wants to merge 1 commit into from

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