Accessing Browser Session Information in Custom Adaptive Tags
To access browser session information from a custom adaptive
tag, use the IEnvironment class.
The
IEnvironment class provides access
to information about the current request and user, including the following:
- HTTP Request and Response: Retrieve the Request or Response
objects, or the Request URL. For example: IXPRequest request
= GetEnvironment().GetCurrentHTTPRequest();
- User information: Retrieve the user's session, or key information
including language, locale, time zone, and access style (standard,
508, or low bandwidth). For example: String strTZ = GetEnvironment().GetTimeZone();
- VarPacks: Retrieve any VarPacks associated with the application
in which the tag is executed.