Implement the session handler for the app