Patrick's Software Blog

Sessions in Flask

Wooden table with the words Sessions in Flask written on it and a notebook with the Flask logo on the table, as well as a cup of coffee.

Introduction

This blog post looks at how (client-side) sessions work in Flask, including the following topics:

  • What is a Session?
  • How sessions are implemented in Flask using cryptographically-signed cookies
  • Client-side vs. server-side sessions
  • Example of using the session object in a Flask application

The full article can be found on TestDriven.io: https://testdriven.io/blog/flask-sessions/