Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9207899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:29:30+00:00 2026-06-18T00:29:30+00:00

I have a Flask application hosted on Heroku, and the Heroku instance (say, helloworld.herokuapp.com

  • 0

I have a Flask application hosted on Heroku, and the Heroku instance (say, “helloworld.herokuapp.com“) has a custom domain name, say “www.helloworld.com“.

When I access the app at the native heroku URL, sessions work perfectly fine. When I access it at www.helloworld.com, they don’t work. I assume that this is because the session cookie that Flask is signing is for the wrong domain.

I tried assigning app.SESSION_COOKIE_DOMAIN and app.SERVER_NAME to ‘helloworld.com‘, but it still only signs the session cookies for helloworld.herokuapp.com.

Is there any way I can force the session cookies to sign as my custom domain?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:29:31+00:00Added an answer on June 18, 2026 at 12:29 am

    After much testing and many permutations of SESSION_COOKIE_DOMAIN and SERVER_NAME, I concluded that the problem was with Heroku. Something about the way Heroku currently routes/hooks up to custom domains breaks domain cookies.

    I verified this by moving to EC2…now everything works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have a Flask application, served by uWSGI using multiple processes, like: uwsgi
I have a web application which is deployed by the means of Flask. I'm
I have a flask application that is laid out as a few MethodView s.
I have a flask application that is setting up a database connection in a
I'm needing to implement an API for my Flask application and have seen recommendations
My application has a custom window design, which means that every window has the
I have a small application written in Python using Flask. Right now I'm running
I have a weird error in my flask application. Problem is that the code
So I have created a flask application in OS from the OS quickstart on
I have an application that will use flask and mongodb; I will probably host

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.