Basic usage ¶ Sessions are a simple way to store data for individual users against a unique session ID . This can be used to persist state information between page requests. Session IDs are normally sent to the browser via session cookies and the ID is used to retrieve existing session data.