Skip to content

SessionIntegration

authx_extra.session.SessionIntegration

SessionIntegration(store, session_id, session_save)
PARAMETER DESCRIPTION
store

session_id

session_save

Source code in authx_extra/session.py
def __init__(self, store, session_id, session_save):
    self.session_store = store
    self.session_id = session_id
    self.session_save = session_save

session_store instance-attribute

session_store = store

session_id instance-attribute

session_id = session_id

session_save instance-attribute

session_save = session_save

get_session

get_session()

Get the session store.

Source code in authx_extra/session.py
def get_session(self):
    """Get the session store."""
    return self.session_store

clear_session

clear_session()

Clear the session store.

Source code in authx_extra/session.py
def clear_session(self):
    """Clear the session store."""
    self.session_store.clear()

get_session_id

get_session_id()

Get the session ID.

Source code in authx_extra/session.py
def get_session_id(self):
    """Get the session ID."""
    return self.session_id

save_session

save_session()

Save the session store.

Source code in authx_extra/session.py
def save_session(self):
    """Save the session store."""
    self.session_save()