saveVariables

session.saveVariables( String fileToSaveTo ) (enterprise edition only)
Description
Saves all current String and Integer variables to the file indicated by fileToSaveTo. This is useful if session state is to be saved across multiple scraping sessions.
Example
// Saves the current session variables out to C:\myvars.txt.
// Note that a forward slash is used instead of a back slash
// as a folder delimiter. If back slashes were used, they
// would need to be doubled so that they're properly escaped
// out for the script interpreter.
session.saveVariables( "C:/myvars.txt" );