Registry / web-framework / actix-session

actix-session

JSON →
library0.11.0rscratesunverified

Session management for Actix Web.

# Cargo.toml [dependencies] actix-session = "0.11.0"
INSTALL
IMPORT
SIG · ACTIX-SESSION
A
actix-session
web-frameworkrustv0.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Session
use actix_session::Session;

Basic session counter example

use actix_session::Session; use actix_web::{web, App, HttpServer, HttpResponse}; async fn index(session: Session) -> HttpResponse { let count: i32 = session.get("count").unwrap().unwrap_or(0); session.insert("count", count + 1).unwrap(); HttpResponse::Ok().body(format!("Count: {}", count)) } #[actix_web::main] async fn main() -> std::io::Result<()> { HttpServer::new(|| { App::new() .route("/", web::get().to(index)) }) .bind("127.0.0.1:8080")? .run() .await }
Debug
Known issues
gotchaRequires actix-web and a session backend (e.g., cookie-based or Redis)
fix
Add actix-web dependency and configure session middleware with a storage backend
affects: >=0.7.0
Upgrade
Version history
0.11.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
38
OpenAI (training)
2
Amazon
1
Resources
actix-session — cargo add actix-session · libregistry