pub async fn establish(
backend: &SessionBackend,
sealer: &CookieSealer,
payload: &[u8],
ttl: Duration,
meta: SessionMeta,
cookie_name: &str,
attrs: &CookieAttrs<'_>,
) -> Result<String, StoreError>Expand description
Seals payload and returns the session Set-Cookie value. Cookie mode:
the sealed blob IS the cookie. Redis mode: the sealed blob goes under a
fresh random id; the cookie carries the bare id.