protected getSessionSavePath ( string $toAppend = null ) : string | ||
$toAppend | string | A relative path to append to the session save path |
return | string | The default path to persist session |
protected function getSessionSavePath($toAppend = null)
{
// load the default path
$sessionSavePath = $this->getSessionSettings()->getSessionSavePath();
// check if we've something to append
if ($toAppend != null) {
$sessionSavePath = $sessionSavePath . DIRECTORY_SEPARATOR . $toAppend;
}
// return the session save path
return $sessionSavePath;
}