setVariable

session.setVariable( String identifier, Object value )
Description
Designates that value should be saved for the duration of the session, and can be accessed using the getVariable method using identifier. Note that the dataSet and dataRecord objects can be stored in session variables, and later accessed using a RemoteScrapingSession (see the links at the bottom of the Running screen-scraper as a server page for more details on this).
Example
// Sets the session variable "CITY_CODE" with the value found
// in the first dataRecord (at index 0) pointed to by the
// identifier "CITY_CODE".
session.setVariable( "CITY_CODE", dataSet.get( 0, "CITY_CODE" ) );