# gorilla/sessions

Package gorilla/sessions provides cookie and filesystem sessions and infrastructure for custom session backends.

Repository: https://github.com/gorilla/sessions
Canonical: https://ross.abutalabs.com/products/sessions
Homepage: https://gorilla.github.io
Language: Go
License: BSD-3-Clause
License Family: permissive
Topics: gorilla, cookie, go, golang, gorilla-web-toolkit, sessions
Last push: 2024-08-20T14:12:54+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5083, "days_push": 743, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3151, forks 380 (observed 2026-08-28T04:07:46.183929+00:00)

## What it is
gorilla/sessions is a Go library providing cookie and filesystem session storage with infrastructure for custom session backends. It offers a simple API for signed and optionally encrypted cookies, flash messages, and multiple sessions per request.

## Use cases
- manage user sessions in a go web app
- store session data in cookies or filesystem
- implement flash messages in go http handlers
- add remember-me functionality to a go web server
- create a custom session backend in golang
- rotate session authentication and encryption keys

## When to choose
- you need session management in a Go net/http application
- you want signed or encrypted cookie-based sessions with a simple API
- you need pluggable session backends behind a common interface
- you want flash messages or multiple sessions per request

## When to avoid
- you need distributed session storage out of the box (e.g. Redis) without writing a custom backend
- your project requires Go versions older than 1.23 for the latest release
- you use a web framework that already bundles session management

## Facets
- artifact type: library
- maturity: stable
- function: middleware, auth, http-server, caching, security
- domain: web-development, backend, security, developer-tools
- platform: go, cross-platform
- tags: sessions, cookies, gorilla-web-toolkit, flash-messages, session-store, net-http, web-server

## Member repositories
- gorilla/sessions (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:46.183929+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:25:53.358869+00:00, confidence not recorded.
  - readme: https://github.com/gorilla/sessions (fetched 2026-08-28T04:07:46.183929+00:00, sha 58f9a31d6493)
  - homepage: https://gorilla.github.io (fetched 2026-08-29T09:40:17.940677+00:00, sha aa93940b2bb1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
