pub fn active_user_id_from_cookie(
state_path: &Path,
cookie_header: Option<&str>,
) -> i64Expand description
Returns the active user id for a session cookie, rejecting expired or revoked rows.
§Parameters
state_path: Input consumed bycrate::runtime::dynamic::active_user_id_from_cookie.cookie_header: Input consumed bycrate::runtime::dynamic::active_user_id_from_cookie.
§Returns
Returns the computed value produced by crate::runtime::dynamic::active_user_id_from_cookie.
§Performance
Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::dynamic::active_user_id_from_cookie.
§Examples
ⓘ
let _result = pharos_native::runtime::dynamic::active_user_id_from_cookie(todo!(), "session=abc");§Related
crate::runtime::dynamicfor adjacent helpers that share the same runtime surface.