The Startup
Published in

The Startup

How to Keep Users Logged in When you Deploy Updates to your Node.js Site on Heroku

A tutorial on how to keep user sessions saved when Heroku restarts the server so they don’t log out.

This is for Node.js, Express and express-session on Heroku.




Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +756K followers.

Recommended from Medium

Dockerizing Vue App With NodeJS Backend — Typescript Version

How to use Ember 2 code in your Ember 3 app

Working with React Context

React Series - 1. Introduction to React

React Logo

Release note of egjs(Q2 2022)

React Building Blocks 🚜

React JS logo

Vue Native Starter Kit with Validation and State Management

Embedded React Applications

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Creator of \n Follow me @mishkaorakzai on Twitter. I write at

More from Medium

Have you ever heard about version controlling?

Introduction to Koa.js

Simple Cipher Solution

Netlify and private Github’s npm scope