<-Back

Function: Gwl::Session-Control-Auto-Refresh

SESSION-CONTROL-AUTO-REFRESH adding this javascript function into the header of a web page will cause the page to timeout and reload repeatedly

This is intended to be used such that when an instance is open in an active browser the page will automatically update the expires-at function even if the operator takes an extended break from the application. It works by checking if any forms exist on this page. If they do it will submit the first form on the page when the timeout value is reached. This is done to avoid the Post Data confirmation warning that most browser present. If no forms are found it will use the reload(true) function to reload the page.

arguments:
timeout Time in seconds between page reloads
optional arguments:
html-stream Stream which the output should be sent to, Default Value: NIL
Default is *html-stream*

<-Back