Mock session handling