@@ -0,0 +1,34 @@
1+---
2+layout: default
3+title: Sessions
4+permalink: /configuration
5+parent: Configuration
6+nav_order: 3
7+---
8+
9+## Sessions
10+
11+Sessions allow a user's authentication to be tracked between multiple HTTP
12+requests to a service.
13+
14+The OAuth2 Proxy uses a Cookie to track user sessions and will store the session
15+data in one of the available session storage backends.
16+
17+At present the available backends are (as passed to `--session-store-type`):
18+- [cookie](cookie-storage) (deafult)
19+
20+### Cookie Storage
21+
22+The Cookie storage backend is the default backend implementation and has
23+been used in the OAuth2 Proxy historically.
24+
25+With the Cookie storage backend, all session information is stored in client
26+side cookies and transferred with each and every request.
27+
28+The following should be known when using this implementation:
29+- Since all state is stored client side, this storage backend means that the OAuth2 Proxy is completely stateless
30+- Cookies are signed server side to prevent modification client-side
31+- It is recommended to set a `cookie-secret` which will ensure data is encrypted within the cookie data.
32+- Since multiple requests can be made concurrently to the OAuth2 Proxy, this session implementation
33+cannot lock sessions and while updating and refreshing sessions, there can be conflicts which force
34+users to re-authenticate