Struct iron_sessionstorage::backends::SignedCookieBackend
[−]
[src]
pub struct SignedCookieBackend { /* fields omitted */ }
Use signed cookies as session storage. See http://lucumr.pocoo.org/2013/11/17/my-favorite-database/ for an introduction to this concept.
You need to pass a random value to the constructor of SignedCookieBackend
. When this value is
changed, all session data is lost. Never publish this value, everybody who has it can forge
sessions.
Note that whatever you write into your session is visible by the user (but not modifiable).
Methods
impl SignedCookieBackend
[src]
Trait Implementations
impl SessionBackend for SignedCookieBackend
[src]
type S = SignedCookieSession
fn from_request(&self, req: &mut Request) -> Self::S
Parse the session before request handling and return the data in parsed form.