SetResponse method: ContentAuthorizorBase class

Syntax

SetResponse(&Cmd, &ValidDuration)

Description

Use the SetResponse method to set the authorization result and the time duration (in seconds).

Parameters

Parameter Description

&Cmd

Specifies the authorization result as a fixed string value.

  • ALLOW_DIRECTORY - the current user is granted authorization for all files in the current requested directory.

  • ALLOW_SUBDIR - the current user is granted authorization for all files in the current directory and all its sub directories.

  • DENY - the current request is denied.

&ValidDuration

Specifies the time duration as an integer value. This is an optional parameter.

The default value is 300 seconds.

Returns

None.

Example

%This.SetResponse(%This.DENY, 60);