public function setName(string $name): void
    {
        if (!empty($name)) {
            if (!is_numeric($name)) {
                @session_name($name);
            } else {
                throw new Exception('The session name can\'t consist only of digits, '
                .'at least one letter must be presented.');
            }
        } else {
            throw new Exception('Empty session name value was passed.');
        }
    }