gitlab-org--gitlab-foss/changelogs/unreleased/sh-limit-unauthenticated-session-times.yml
Stan Hu c559c43daf Limit the TTL for anonymous sessions to 1 hour
By default, all sessions are given the same expiration time configured in the
session store (e.g. 1 week). However, unauthenticated users can generate a lot
of sessions, primarily for CSRF verification. It makes sense to reduce the TTL
for unauthenticated to something much lower than the default (e.g. 1 hour) to
limit Redis memory. In addition, Rails creates a new session after login,
so the short TTL doesn't even need to be extended.

Closes #48101
2018-07-18 12:39:51 -07:00

5 lines
105 B
YAML

---
title: Limit the TTL for anonymous sessions to 1 hour
merge_request: 20700
author:
type: performance