WebCenter Interaction API  
 

IPTSessionInfo.AddSessionPreference Method (String, String, Boolean)

Adds a session preference for the current user. This information is cached and not persisted to the database. If bCSPEncode is true, preference name and values will be CSP-encoded.

bool AddSessionPreference(
   string strSessionPreference,
   string strValue,
   bool bCSPEncode
);

Parameters

strSessionPreference
- The name of the preference to set.
strValue
- The value to associated with the above preference.
bCSPEncode
- Whether or not the pref name/values should be CSP encoded.

Return Value

False if the preference was not set due to session pref memory limits, true otherwise

See Also

IPTSessionInfo Interface | com.plumtree.server Namespace | IPTSessionInfo.AddSessionPreference Overload List