Skip to main content

session_cookie

Function session_cookie 

Source
pub fn session_cookie(req: &Request, token: &str, max_age: i64) -> String
Expand description

Set-Cookie for the session (an empty token with max-age 0 clears it).