GetServerVar

You use this function to retrieve the global value that is saved by previous SetServerVar.

SetServerVar() and GetServerVar() functions can be used as a way to cache and share variable values across different policies or threads on the server. You have full control of these variables and are responsible for cleaning up global variables.

Syntax

GetServerVar(variablename)

Parameters

Table 1. GetServerVar function parameters

Parameter

Description

variablename

Name of the variable.

Example

For an example of using the GetServerVar function, see SetServerVar.