Skip to content

current_user.is_authenticated lost when redirecting in docker #687

Description

@hdemann

Hello,
I have an app using flask-login. Latest versions of everything.
I have a login page, and using the login_user, I am able to start a session for the user. I am running this on localhost. python app.py
However, when I run the same code in a Docker container, the session is lost when I redirect to another page after logging in.
So, I log in, redirected to a page that requires login then Redirected to login page as there is no session.
current_user.is_authenticated = False after the redirect. The docker container is running behind gunicorn/gevent if that might be the cause of the issue. It works perfectly without the docker container/gunicorn. This is happening in chrome, did not try another browser

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions