How to simulate:
- Make sure that in imce at least 2 folders exist
- Go to /imce -> Now you see all the folders
- Click on any folder
- Refresh the browser page (Mac > CMD+R; Windows > F5; ...) -> You will see that only the selected folder is visible, the rest is gone

Comments

nico.knaepen’s picture

By removing the following code in imce.page.inc the problem seems to be resolved.

//check session
  if ($sess && isset($_SESSION['imce_directory'])) {
    $dirname = rawurldecode($_SESSION['imce_directory']);
    if ($info = imce_directory_info($dirname, $imce)) {
      if (imce_check_directory($dirname, $imce)) {
        return $info;
      }
    }
  }

It seems that the only reason why this code has been implemented, is because we want to open the current selected folder after browser page refresh.

ufku’s picture

Status: Active » Closed (works as designed)

IMCE remembers the last visitied folder and continues from there. There is no sane way to remember and re-open all folders from the last session.