cancel
Showing results for 
Search instead for 
Did you mean: 

Close session without ~DISCONNECTONCLOSE parameten

Former Member
0 Kudos

Hi!

I have very simple service which generates single static (non-interactive) HTML page.

Since the page is not interactive, I don't need the server-side session (PlugIn HTTP) to stay and want to close it immediately after the page is generated. But for some reasons using ~DISCONNECTONCLOSE doesn't suit well.

Is there way to close the service immediately the page is generated and sent to a client's browser?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Some new information:

I've set the parameter ~SINGLETRANSACTION = 1 and have called 'leave program' in PBO module of the program associated with the service. This leads to "Logged Off Successfully" message displayed when the service is started.

Is there apossibility to have a session terminated without replacing the last page contents with "Logged Off Successfully" message?

Former Member
0 Kudos

Issue resolved by replacing HTML body with call of server->response->set_cdata( '...' ) in IF_HTTP_EXTENSION~HANDLE_REQUEST method.