protected function submitSelectedFileManager()
    {
        $command_id = $this->getPosted('command_id');
        $selected = $this->getPosted('selected', array(), false, 'array');

        if ($command_id && $selected) {
            $limit = 100; // Max number of items to keep in the session
            $save = array_slice(array_unique($selected), 0, $limit);
            $this->session->set('file_manager_selected', $save);
            $query = array('cmd' => $command_id, 'path' => $this->data_path, 'selected' => true);
            $this->url->redirect('', $query);
        }

        $this->redirect();
    }