Struct actix_redis::RedisSessionBackend[][src]

pub struct RedisSessionBackend(_);

Use redis as session storage.

You need to pass an address of the redis server and random value to the constructor of RedisSessionBackend. This is private key for cookie session, When this value is changed, all session data is lost.

Constructor panics if key length is less than 32 bytes.

Methods

impl RedisSessionBackend
[src]

Create new redis session backend

  • addr - address of the redis server

Set time to live in seconds for session value

Set custom cookie name for session id

Set custom cookie path

Set custom cookie domain

Set custom cookie secure If the secure field is set, a cookie will only be transmitted when the connection is secure - i.e. https

Set custom cookie max-age

Set custom cookie SameSite

Trait Implementations

impl<S> SessionBackend<S> for RedisSessionBackend
[src]

Parse the session from request and load data from a storage backend.

Auto Trait Implementations