Skip to main content

get_internal

Function get_internal 

Source
pub fn get_internal(name: &str) -> Option<String>
Expand description

Retrieves a cookie value, bypassing the HttpOnly restriction.

Warning: Only use this for server-side operations like session restoration on native platforms. Never expose HttpOnly cookie values to user-facing code.

§Example

// In app initialization, restore session from stored cookie
if let Some(token) = dioxus_cookie::get_internal("session") {
    restore_session(&token).await;
}