Previous Topic: Session Methods

Next Topic: DelVariables Method—Deletes Session Variables from Session Store

AddParameter Method—Adds Session Variable Name-Value Pair to Parameters List

The AddParameter method adds a session variable name-value pair to a parameters list. Session variables contain data about the client application, such as business logic, certificate information, and SAML assertions for Affiliate applications. This data is bound to a user session.

Syntax

The AddParameter method has the following format:

Netegrity::AgentSession‑>AddParameter(varName [,varValue][, varFlag])

Parameters

The AddParameter method accepts the following parameters:

varName (string)

Specifies the name of the variable to add to the parameter list.

Limit: Maximum length is 255 characters.

varValue (string)

(Optional) Specifies the value of the variable to be added to the parameter list.

Limit: Maximum length is determined by the target data store.

varFlag (int)

(Optional) Specifies whether the GetVariables method deletes the variable name-value pair from the session store:

Return Value

The AddParameter method does not return a value.

Remarks

You can manage the name-value pairs in the parameters list by calling these session variable methods:

To manage multiple variables, call AddParameter once for each variable before calling the AgentSession‑>DelVariables, AgentSession‑>GetVariables, and AgentSession‑>SetVariables methods. While AddParameter adds variables to the parameters list, AgentSession‑>DelVariables, AgentSession‑>GetVariables, and AgentSession‑>SetVariables clear the parameters list.

Before you can use the session variable methods, the following conditions must be met:

Note: For more information, see the Policy Server Administration Guide and the Policy Server Configuration Guide.


Copyright © 2010 CA. All rights reserved. Email CA about this topic