A persistence framework for session data