session management and persistency