pub fn new(store: impl SessionStore + Send + Sync + 'static) -> SessionFilter {
        SessionFilter {
            cookie_name: Cow::Borrowed(DEFAULT_COOKIE_NAME),
            expiry: time::Duration::hour(),
            cookie_callback: None,
            store: AsyncMutex::new(Box::new(store)),
        }
    }
/// Create a new session filter using the provided store
/// The default cookie name is [DEFAULT_COOKIE_NAME] and expiry is set to one hour
Create a new session filter using the provided store
The default cookie name is [DEFAULT_COOKIE_NAME] and expiry is set to one hour
Create a new session filter using the provided store The default cookie name is [ DEFAULT_COOKIE_NAME ] and expiry is set to one hour
pub fn new(store: impl SessionStore + Send + Sync + 'static) -> SessionFilter {
        SessionFilter {
            cookie_name: Cow::Borrowed(DEFAULT_COOKIE_NAME),
            expiry: time::Duration::hour(),
            cookie_callback: None,
            store: AsyncMutex::new(Box::new(store)),
        }
    }
pub fn new ( store : impl SessionStore + Send + Sync + ' static ) -> SessionFilter { SessionFilter { cookie_name : Cow :: Borrowed ( DEFAULT_COOKIE_NAME ) , expiry : time :: Duration :: hour ( ) , cookie_callback : None , store : AsyncMutex :: new ( Box :: new ( store ) ) , } }
Create a new session filter using the provided store
The default cookie name is [DEFAULT_COOKIE_NAME] and expiry is set to one hour
Create a new session filter using the provided store The default cookie name is [ DEFAULT_COOKIE_NAME ] and expiry is set to one hour
store
impl SessionStore + Send + Sync + 'static