code: public function getLastFolderID()
      {
          $request = Controller::curr()->getRequest();
          $session = $request->getSession();
          return $session->get(self::class . '.FolderID');
      }
docs: Get the last folder selected
  
  @return int