public function setSavePath($value)
{
if ($this->_started) {
throw new TInvalidOperationException('httpsession_savepath_unchangeable');
} elseif (is_dir($value)) {
session_save_path(realpath($value));
} elseif (null !== ($ns = Prado::getPathOfNamespace($value)) && is_dir($ns)) {
session_save_path(realpath($ns));
} else {
throw new TInvalidDataValueException('httpsession_savepath_invalid', $value);
}
}