Use Cookies to Store session information, see Response from FhGenie #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Do you want server-side sessions (e.g., auth) with Leptos + Axum, or just client-side persistence in the browser?
If server-side (recommended):
Axum setup with cookies:
Read/write a session cookie in a Leptos server function:
Signed cookies (recommended):
Server-side session store (e.g., memory/Redis) with axum-session:
If client-side only:
Best practices:
Tell me your setup (Axum SSR vs client-only, and whether you need Redis/etc.), and I can tailor a minimal example.