salvo-session

Configure Salvo session middleware with CookieStore or MemoryStore for user state.

20|5|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-session
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salvo-session
Source: https://github.com/salvo-rs/salvo-skills/tree/main/skills/salvo-session
Command: npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-session

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implement robust session management for Salvo applications to preserve user state across requests, including login status, shopping carts, and preferences, in a consistent and secure manner.

Core Features & Use Cases

  • Configure and initialize session handlers using CookieStore or MemoryStore.
  • Create, read, update, and remove session data within request handlers.
  • Apply session middleware to protect authentication flows and maintain user state across routes.

Quick Start

Configure a SessionHandler with a CookieStore and apply it to your Salvo router to enable session persistence.

Frequently Asked Questions about salvo-session

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage user sessions in a Rust web application using Salvo?

You can manage user sessions in Salvo by configuring a SessionHandler with a CookieStore or MemoryStore, then applying session middleware to your router to maintain state across requests.

What is the best way to persist shopping cart data across requests in Salvo?

The best way to persist shopping cart data in Salvo is using server-side session management with a configurable store like CookieStore to securely maintain user state across routes and handlers.

Can I use MemoryStore instead of CookieStore for Salvo session state management?

Yes, Salvo session middleware supports both MemoryStore and CookieStore, allowing you to choose your preferred backend when initializing the SessionHandler builder for state persistence.

How do I protect authentication flows and maintain login status in Salvo?

You protect authentication flows in Salvo by applying session middleware to your router, which maintains login status and user state securely across routes using a configured SessionHandler.

Do I need a dedicated database to handle session state in Salvo?

No, a dedicated database is not required for Salvo session state, as the framework provides CookieStore and MemoryStore options to handle state persistence directly within your application.

Why does my Salvo session data disappear between routes and handlers?

Session data disappears between routes if the SessionHandler middleware is not properly applied to the router, preventing the configured store from persisting state across requests.