public function cofigureSession (string $name, $value) : bool
    {
        if (!property_exists($this, $name)) return FALSE;
        $allowedProperties = ['expire', 'path', 'domain', 'secure', 'httponly'];
        if (!in_array(strtolower($name), $allowedProperties)) return FALSE;
        $this->$name = $value;                
        return TRUE;
    }
public function cofigureSession (string $name, $value) : bool
    {
        if (!property_exists($this, $name)) return FALSE;
        $allowedProperties = ['expire', 'path', 'domain', 'secure', 'httponly'];
        if (!in_array(strtolower($name), $allowedProperties)) return FALSE;
        $this->$name = $value;                
        return TRUE;
    }
public function cofigureSession ( string $ name , $ value ) : bool { if ( ! property_exists ( $ this , $ name ) ) return FALSE ; $ allowedProperties = [ 'expire' , 'path' , 'domain' , 'secure' , 'httponly' ] ; if ( ! in_array ( strtolower ( $ name ) , $ allowedProperties ) ) return FALSE ; $ this -> $ name = $ value ; return TRUE ; }
Configures session.
@param string $name
@param mixed $value
@return bool
Configures session .