IMetabasePolicy.AuditUserAgent

Syntax

AuditUserAgent: Boolean;

Description

The AuditUserAgent property determine whether information about browser (User Agent) is logged when working in the web application.

Comments

Available values:

The property is identical to the Log Information about UserAgent checkbox contained in access control settings.

Example

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    Policy: IMetabasePolicy;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    // Get license to be able to work with the security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    Policy := MS.Policy;
    // Enable logging of information about User Agent
    Policy.AuditUserAgent := True;
    // Save changes
    MS.Apply;
    // Check in license
    Lic := Null;
End Sub UserProc;

After executing the example, each login to the system is logged in the access protocol containing information about the browser, in which the web application is opened.

See also:

IMetabasePolicy