Implement Session Management.