Except for log-on, log-off, and the specific transaction commands, applications built with ehsql.cgi and ehlink.cgi are syntactical equivalent. Therefore, if you build your applications using relative URL links (so the CGI itself is not specified in most pages), it is possible to toggle an application between the two modes of operation.
The session base system has two modes of log-on:
The syntax for an automatic log-on is:
<A HREF="/My-bin/ehlink.cgi/app_page.ehtml?openconnect+db_hostname+db_logical_name">
WHilst the syntax for the prompted log-on is:
<A HREF="/My-bin/ehlink.cgi/app_page.ehtml?connect+db_hostname+db_logical_name">
With the prompted log-on the system will check whether the client is already connected to the specified data source, and if not it will prompt the client for log-on information (username and password).
A session based link will timeout after 15 minutes of inactivity. The timeout period can be changed by setting the EH_LINK_TIMEOUT resource variable.
If you wish to contruct you own log-on form. You can either replace this page, or create a new page called connect.htm in the same directory as your application page.
The action of the form should call the first page of the application, and the first three parameters of the action URL should be:
?verify+hostname+logical_database_name
As well, the form must allow the user to input both username and password. The names of these fields must be eh-uid and eh-password.
If you want to write such a page, the best idea is to copy the
default page from
$MSHYPERPATH/resources/html/connect.htm
and modify it - making sure you don't change the form content.
http://bob:8080/My-bin/ehlink.cgi?disconnect+all
This will shut down all connections opened by ehlink.cgi for that particular user. There is currently no command to shut down an individual connection.