Given a stream of user activity logs, design a data structure that efficiently tracks and retrieves the most recent active sessions.