Skip to main content

active_user_id_from_cookie

Function active_user_id_from_cookie 

Source
pub fn active_user_id_from_cookie(
    state_path: &Path,
    cookie_header: Option<&str>,
) -> i64
Expand description

Returns the active user id for a session cookie, rejecting expired or revoked rows.

§Parameters

§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");