Skip to content

Cookies and storage

Last updated: December 5, 2026

The site uses three cookies, all needed to log in and to keep forms safe. It also keeps a few values in your browser: three settings you choose, whether you have closed the cookie notice, the code you are writing in the editor, and one value that helps a page recover after the site is updated. There are no analytics, advertising or tracking cookies, so there is nothing to agree to.

About the cookies

  • The session cookie can't be read by scripts on the page (HttpOnly), and is sent only on requests from this site (SameSite=Lax). On the live site it is also sent only over HTTPS; that is a server setting.
  • XSRF-TOKEN has to be readable by the page, because the page sends its value back with every form. It proves that a request comes from this site, not from another one.
  • Signing in with Google or GitHub uses the same session cookie and adds no other cookie or stored value. When Google or GitHub sends you back to this site, your browser sends the session cookie with that page visit (SameSite=Lax allows this for a link you follow), so the server can check that the sign-in started here.

Stored in your browser

Your language, sound and code language choices are kept in your browser's local storage, on your device only. The site sends your language with each request to the server (as the Accept-Language header), so that messages come back in that language. When you close the cookie notice, the date of this page's current version is kept there too (cookie-notice), so the notice stays closed until this text changes.

The code you write in the editor is kept there as a draft (algoslab:draft:v2:…), one per problem and programming language, with the time it was saved and, if you are logged in, your account ID. It stays on your device; if you are logged in, the same code is also saved to your account (see the Privacy policy). Logging out removes every draft from this browser.

If the site is updated while a page is open, the page may reload once to get the new version. So that it does not reload again and again, it notes the time of that reload in the tab's session storage (chunk-reload), which is cleared when you close the tab.

The bot check on the sign-in, sign-up and password reset forms, and on the bug report form when you are not logged in, runs in a frame served by the provider of the check. What it keeps in your browser is set by that provider, not by this site (see the Privacy policy).

Clearing your browser's site data removes all of these values.

Cookies and storage keys

  • algoslab-session (the name follows the server's app name)

    Type
    Cookie
    What it is for
    Keeps you logged in between pages.
    How long it lasts
    Until 2 hours without activity (server setting)
    Strictly necessary
    Yes
  • XSRF-TOKEN

    Type
    Cookie
    What it is for
    Protects every change you make, such as logging in or submitting code, against requests sent from other sites.
    How long it lasts
    Same as the session
    Strictly necessary
    Yes
  • remember_web_…

    Type
    Cookie
    What it is for
    Only if you tick "Remember me": keeps you logged in after the session ends.
    How long it lasts
    Up to 30 days
    Strictly necessary
    Yes, once you ask to be remembered
  • lang

    Type
    Local storage
    What it is for
    The language you picked.
    How long it lasts
    Until you clear site data
    Strictly necessary
    A setting you chose
  • sound

    Type
    Local storage
    What it is for
    Whether sound effects are on.
    How long it lasts
    Until you clear site data
    Strictly necessary
    A setting you chose
  • code-lang

    Type
    Local storage
    What it is for
    The programming language you used last in the code editor, so the editor and the lesson code open on it.
    How long it lasts
    Until you clear site data
    Strictly necessary
    A setting you chose
  • cookie-notice

    Type
    Local storage
    What it is for
    That you closed the cookie notice, and the date of the cookie text you saw, so the notice comes back when that text changes.
    How long it lasts
    Until you clear site data
    Strictly necessary
    Yes
  • algoslab:draft:v2:<problem>:<language>

    Type
    Local storage
    What it is for
    The code you are writing in the editor, when it was saved and, if you are logged in, your account ID, so the code survives a reload.
    How long it lasts
    Until you log out, reset the code, or clear site data
    Strictly necessary
    Yes, to keep the code you write
  • chunk-reload

    Type
    Session storage
    What it is for
    When the page last reloaded itself after a site update, so it reloads only once.
    How long it lasts
    Until you close the tab
    Strictly necessary
    Yes

Email from the address on your account, so we can tell the request comes from you.

contact@algoslab.dev