From ea12a77d6e9b70848826608caf2e7cdc166a18e3 Mon Sep 17 00:00:00 2001 From: Ege <79886971+ege-del@users.noreply.github.com> Date: Thu, 10 Nov 2022 04:02:31 +0300 Subject: [PATCH] mentioning required feature on the example code (#295) Co-authored-by: Yuki Okushi --- docs/middleware.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/middleware.md b/docs/middleware.md index db0ad18..eeaf11d 100644 --- a/docs/middleware.md +++ b/docs/middleware.md @@ -90,6 +90,7 @@ A _signed_ cookie may be viewed but not modified by the client. A _private_ cook The constructors take a key as an argument. This is the private key for cookie session - when this value is changed, all session data is lost. In general, you create a `SessionStorage` middleware and initialize it with specific backend implementation, such as a `CookieSession`. To access session data the [`Session`][requestsession] extractor must be used. This method returns a [_Session_][sessionobj] object, which allows us to get or set session data. +> `actix_session::storage::CookieSessionStore` is available on the crate feature "cookie-session".