Class Context() Professional

Class function of the Context class


A Context object provides information about the connection between Web browser and WAA gateway. It is passed as the second parameter to a registered form-function. Example:

FUNCTION _Register( oPackage ) 
   oPackage:registerForm( "UserForm" ) 

FUNCTION UserForm( oHTML3, oContext ) 

With methods in the group Connection information about the connected gateway can be retrieved.

Methods in this group Session management allow attaching persistent data to a session consisting of multiple HTML pages. This way, data entered by a user in an HTML page can be stored within a registered form-function by passing them to the oContext:setCargo() method. When a user selects the next HTML page, stored data can be retrieved in another form-function using oContext:getCargo().

Query the document root.
Query a CGI environment variable on the gateway.
Query the referrer.
Retrieve the client's IP address.
Query name of the Web browser.
Query the remote eMail address of the client
Query the remote hostname
Query the authenticated username.
Query the scriptname used by the HTTP server.
Query the name of the HTTP server.
Query the name of the HTTP server software.
Session management
Open a session.
Close a session.
Store a value in the session.
Retrieve a value stored by :setCargo()
Sending an e-mail via the connected gateway.

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.