Skip to main content

current

Function current 

Source
pub fn current() -> Option<Session>
Expand description

The session of the request being handled, or None on a route without one.

Component templates read the CSRF token and session-backed properties synchronously, because MiniJinja’s rendering is synchronous.