def clear_tenant(session: Session) -> None: session.pop('active_tenant', None) session.pop('active_tenant_name', None)
def flush(cls, session: SessionBase): """Remove the table from the session.""" session.pop(PAYLOAD_SESSION_DICTIONARY, None)
def pop_utm_params(session: SessionBase) -> List[UtmParamsDict]: """Pop the list of utm_param dicts from a session.""" return session.pop(SESSION_KEY_UTM_PARAMS, [])
def session_logout(session: SessionBase) -> None: session.pop('user_data')