Teachers Online uses a Flask session cookie for essential website functions. It can maintain a signed-in session and support features such as security checks and temporary messages. The cookie may contain session values such as an account identifier or a security token.
The session cookie is configured with the Secure, HttpOnly, and SameSite=Lax attributes. Flask signs the session data to help detect changes; signing does not encrypt it.
The application does not set a permanent session lifetime, so the cookie is intended to expire when the browser session ends. Browser behavior such as restoring a previous session can affect when session cookies are removed.
A cookie is not necessarily sent to every visitor. The browser receives or updates it when the application changes session data, for example when signing in, storing a temporary notice, or creating a settings security token.