Skip to main content

Module cookie_utils

Module cookie_utils 

Source
Expand description

Shared cookie utilities for building Set-Cookie headers.

This module centralises the session cookie construction that was previously duplicated across every plugin (email_password, passkey, two_factor, admin, password_management, session_management, email_verification).

Functionsยง

create_clear_session_cookie
Build a Set-Cookie header value that clears the session cookie.
create_session_cookie
Build a Set-Cookie header value for a session token using the cookie crate for correct formatting and escaping.