---
id: "gitlab_session_cookie"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["secrets"]
langs: ["common"]
quality: 70
url: "https://registry.apicrafter.io/datatype/gitlab_session_cookie"
---

# GitLab session cookie (`gitlab_session_cookie`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Session cookie of the GitLab web interface, written as _gitlab_session=<value>. Whoever has the cookie is signed in as the user until the session ends. GitLab documents the cookie name; the regexp follows the gitleaks rule (32 lowercase letters and digits as the value).

- Personal data (PII): no
- Categories: Secrets and credentials (passwords, keys, tokens) (secrets)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^_gitlab_session=[0-9a-z]{32}$
```

## Examples

- `_gitlab_session=` (invalid example) — Cookie name without the value

## Supported by tools

- `datadogsds`
- `gitleaks`

## Sources

- doc: <https://docs.gitlab.com/security/tokens/>
- other: <https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml>

## Quality

Score 70/100. Missing: examples, mapping (Wikidata, Schema.org, ...), translation.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/gitlab_session_cookie.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/secrets/gitlab_session_cookie.yaml>
