Custom CaseBox class for session handling