What is controlling session data?
Posted: Tue Aug 03, 2010 10:45 am
Question:
Thinking about a browser application written using RPG CGI, what is controlling session data or someone just closing a browser? If the RPG is in a loop waiting for a command key to be received does it just run forever if the user closes the browser?
Answer:
We catch the browser event when the user closes the browser. First, the user will see a warning that the session is about to end. If they still proceed, a message is sent to the server to end the job. The job will not stick around forever, like with RPG/CGI, and no records will remain locked.
Thinking about a browser application written using RPG CGI, what is controlling session data or someone just closing a browser? If the RPG is in a loop waiting for a command key to be received does it just run forever if the user closes the browser?
Answer:
We catch the browser event when the user closes the browser. First, the user will see a warning that the session is about to end. If they still proceed, a message is sent to the server to end the job. The job will not stick around forever, like with RPG/CGI, and no records will remain locked.