Bluz\Session\Session::setSavePath PHP Method

setSavePath() protected method

Set session save path
protected setSavePath ( string $savePath ) : Session
$savePath string
return Session
    protected function setSavePath($savePath)
    {
        if (!is_dir($savePath) || !is_writable($savePath)) {
            throw new ComponentException('Session path is not writable');
        }
        session_save_path($savePath);
        return $this;
    }