# Cookies and analytics

Which cookies SKILLOK sets, which are required, which load only with consent, and how to change your choice at any time.

## How consent works

On your first visit a question about analytics appears at the bottom of the page with two equal
buttons — **Accept** and **Decline**. Before you answer and after you decline, analytics does not
load at all: only the required cookies below are used.

The rule is the same for every country: we ask everyone, not only where the law requires it. If
your browser sends the Global Privacy Control signal, we treat it as a refusal and do not ask.

Your choice is stored in your browser with its date and the policy revision. When the rules change
materially, we ask again.

## Changing your choice

The **Cookie settings** link in the site footer — or right here: [Cookie settings](#cookie-settings) —
reopens the question. Declining after consenting takes effect at once: the page reloads without
analytics and Metrica cookies are erased.

While you are signed in, Metrica does not load at all — neither in the app nor on public pages —
and the cookie question is not asked.

## Required cookies

Sign-in, form protection and preferences do not work without them. They need no consent and take no
part in analytics.

| Name | Purpose | Lifetime |
|---|---|---|
| `sk_access_token` | signing in | until the session expires or you sign out |
| `sk_refresh_token` | renewing sign-in; sent only to sign-in addresses | 7 days or until you sign out |
| `sk_session` | marker "sign-in can be renewed", holds no secret | same as `sk_refresh_token` |
| `sk_csrf` | protecting forms from request forgery | 30 days |
| `sk_flash` | a single message after an action ("Saved") | one minute |
| `skillok_lang` | chosen language | one year |
| `skillok_theme` | chosen theme | one year |

On the site some names carry the `__Host-` prefix: the browser then sends the cookie only to this
domain and only over HTTPS.

Browser storage (`localStorage`) holds your theme and your answer to the cookie question — neither
is sent to the server.

## Analytics cookies — only with consent

Set by Yandex Metrica, details in [Analytics consent](https://skillok.org/docs/en/site-policy/analytics-consent).

| Name | Purpose | Lifetime |
|---|---|---|
| `_ym_uid`, `_ym_d` | telling a returning visit from a new one | one year |
| `_ym_isad`, `_ym_visorc` and other `_ym_*` | counter service flags | from the session to two days |
| `yandexuid`, `ymex`, `yuidss` | browser identifier at Yandex (on Yandex's domain) | up to a year |

---

https://skillok.org/docs/en/site-policy/cookies
