summaryrefslogtreecommitdiff
path: root/spec/features/projects/blobs/blob_show_spec.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-07-18 11:18:14 -0700
committerStan Hu <stanhu@gmail.com>2018-07-18 12:39:51 -0700
commitc559c43dafb75005f5589c473729054845bb498b (patch)
tree590ffab29094fa7a64f8c1e0cc14552b76a2876a /spec/features/projects/blobs/blob_show_spec.rb
parent9bdc9b1ae69a62ad764d8ae59baa43a4a0be1d3a (diff)
downloadgitlab-ce-c559c43dafb75005f5589c473729054845bb498b.tar.gz
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
Diffstat (limited to 'spec/features/projects/blobs/blob_show_spec.rb')
0 files changed, 0 insertions, 0 deletions