Skip to main content

clear_session_cookie

Function clear_session_cookie 

Source
pub fn clear_session_cookie(config: &SessionConfig, domain: &str) -> String
Expand description

Build a Set-Cookie header value that expires the session cookie.

Returns Max-Age=0 with the same cookie name, path, domain, and flags as session_cookie() so the browser matches and removes the stored cookie.