$userFolderPath = self::getSession("pathOfUserTemporaryFolder", ""); if (!is_dir($userFolderPath)) { self::createUserTemporaryFolder(); } return self::getSession("pathOfUserTemporaryFolder", ""); } static function createUserTemporaryFolder() { $userFolderName = strtolower(App_Formatter::cleanFileNames(App_Env::getUser()->getLoginid())); $userFolderPath = TEM_DOCUMENTS . "/" . $userFolderName; if (!is_dir($userFolderPath)) { @mkdir($userFolderPath, 0777, true);