"""icon" sizes="16x16" href="_static/icon/favicon-16x16.png" type="image/png"> """icon" sizes="32x32" href="_static/icon/favicon-32x32.png" type="image/png"> """icon" sizes="48x48" href="_static/icon/favicon-48x48.png" type="image/png"> """icon" sizes="192x192" href="_static/icon/favicon-192x192.png" type="image/png"> """icon" sizes="512x512" href="_static/icon/favicon-512x512.png" type="image/png"> """apple-touch-icon" sizes="180x180" href="_static/icon/apple-touch-icon-180x180.png" type="image/png"> """mask-icon" href="_static/icon/safari-pinned-tab.svg" type="image/svg+xml">"""search" title="Search" href="search.html">"""next" title="Introduction" href="introduction.html"> """prefetch" href="_static/logo/logo-light.png" as="image"> """prefetch" href="_static/logo/logo-dark.png" as="image"> """stylesheet" type="text/css" href="_static/pygments.css?v=d111a655" /> """stylesheet" type="text/css" href="_static/styles/furo.css?v=4db3a74f" /> """stylesheet" type="text/css" href="_static/styles/furo-extensions.css?v=99069b78" /> """stylesheet" type="text/css" href="_static/styles.css?v=6deb019a" /> """stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/fontawesome.min.css" /> """stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/solid.min.css" /> """stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/brands.min.css" />
Skip to content
Flask-Session is switching serializer to msgspec in 1.0.0. Version 0.7.0 will migrate existing sessions upon read or write.
Back to top
View this page
Edit this page

# Table of Contents

- Introduction
  - Client-side vs Server-side sessions
- Installation
  - Available storage options
- Usage
  - Quickstart
  - Alternative initialization
  - Using CacheLib as a session backend
- Configuration
  - Example
  - Non-permanent sessions
  - Scheduled session cleanup
  - Retries
  - Logging
  - Serialization
  - Relevant Flask configuration values
  - Flask-Session configuration values
  - Storage configuration
- Security
  - Flask configuration
  - Storage
  - Session fixation
- API
- Contributing
  - Getting started
  - Pull requests
- BSD-3-Clause License
- Changes
  - 0.8.0 - 2024-03-26
  - 0.7.0 - 2024-03-18
  - 0.6.0 - 2024-01-16
  - 0.5.0 - 2023-05-11
  - 0.4.1
  - 0.4.0
  - 0.3.2
  - 0.3.1
  - 0.3
  - 0.2.3
  - 0.2.2
  - 0.2.1
  - 0.2
  - 0.1.1
  - 0.1