1
0
mirror of https://github.com/actix/actix-website synced 2025-06-27 07:29:02 +02:00

prettier markdown

This commit is contained in:
Rob Ede
2023-11-01 15:28:34 +00:00
parent 7c4b52623e
commit 0d0e7f4433
17 changed files with 77 additions and 208 deletions

View File

@ -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".
<CodeBlock example="middleware" file="user_sessions.rs" section="user-session" />