Confluence 5.7 has reached end of life
Check out the [latest version] of the documentation
This page lists cookies stored in Confluence users' browsers which are generated by Confluence itself. This page does not list cookies that may originate from 3rd-party Confluence plugins.
Confluence uses Seraph, an open source framework, for HTTP cookie authentication. Confluence uses two types of cookies for user authentication:
seraph.confluence, is generated by Confluence when the user selects the Remember me check box on the login page. You can read about cookies on the Wikipedia page about HTTP cookies.
On this page:
The 'remember me' cookie, seraph.confluence, is a long-lived HTTP cookie. This cookie can be used to authenticate an unauthenticated session. Confluence generates this cookie when the user selects the Remember me check box on the login page.
By default, the cookie key is seraph.confluence, which is defined by the login.cookie.key parameter in the CONFLUENCE-INSTALLATION/confluence/WEB-INF/classes/seraph-config.xml file.
The cookie contains a unique identifier plus a securely-generated random string (i.e. token). This token is generated by Confluence and is also stored for the user in the Confluence database.
When a user requests a web page, if the request is not already authenticated via session-based authentication or otherwise, Confluence will match the 'remember me' cookie (if present) against the token (also if present), which is stored for the user in the Confluence database.
If the token in the cookie matches the token stored in the database and the cookie has not expired, the user is authenticated.
You can configure the maximum age of the cookie. To do that you will need to modify the CONFLUENCE-INSTALLATION/confluence/WEB-INF/classes/seraph-config.xml file and insert the following lines below the other init-param elements:
<init-param> <param-name>autologin.cookie.age</param-name> <param-value>2592000</param-value><!-- 30 days in seconds --> </init-param>
Every cookie issued by Confluence has a corresponding record in the database. A scheduled job runs on the 20th of every month to clean up expired tokens. The name of the trigger is clearExpiredRememberMeTokensTrigger.
Note: The only purpose of this job is to prevent the database table from growing too big. For authentication purposes, Confluence will ignore expired tokens even if they still exist in the database.
Confluence does not offer an option for disabling the 'Remember Me' feature. See the workaround.
There are several cookies that Confluence uses to store basic 'product presentation' states. Confluence users' authentication details are not stored by these cookies.
| Cookie Key | Purpose | Cookie Contents | Expiry |
| doc-sidebar | Remembers the user's preference for the width of the navigation sidebar in the Confluence documentation theme. | The width of the sidebar in pixels. For example, 300px | One year from the date it was set or was last updated. |
| confluence.list.pages.cookie | Remembers the user's last chosen tab in the "list pages" section. | The name of the last selected tab. For example, list-content-tree | One year from the date it was set or was last updated. |
| confluence.browse.space.cookie | Remembers the user's last chosen tab in the "browse space" section | The name of the last selected tab. For example, space-pages | One year from the date it was set or was last updated. |
| confluence-language | Remembers the user's language chosen on the login page. This cookie relates to a feature that allows a user to change Confluence's language from (and including) the login page, when the language presented to the user prior to logging in is not appropriate. | A locale relating to the chosen language. For example, de_DE | 360 days from the date it was set or was last updated. |
| AJS.conglomerate.cookie | Tracks which general tabs were last used or expansion elements were last opened or closed. | One or more key-value strings which indicate the states of your last general tab views or expansion elements. | One year from the date it is set or was last updated. |