Skip to main content

set_cookie

Function set_cookie 

Source
pub fn set_cookie(id: &str) -> HeaderValue
Expand description

The Set-Cookie value that gives a browser the session with this id. It names no lifetime: the browser drops it when it closes, and the registry holds the limits. A sign-in method answers with it once Tenants::start_session has given it the id; none is built yet.

ยงPanics

If id holds a character a header value cannot; a session id never does.