setCookie

session.setCookie( String domain, String key, String value ) (professional and enterprise editions only)
Description
Causes a cookie to be manually set on the current session state. Note that this method should be rarely used, given that screen-scraper automatically manages cookies. It might be necessary in cases where a site sets cookies via JavaScript.
Example
// Sets a cookie associated with "mydomain.com", using the
// key "cookie_key" and the value "cookie_value".
session.setCookie( "mydomain.com", "cookie_key", "cookie_value" );