on 03-11-2009 1:49 PM
Hi,
how to avoid screen dump after session time out.
instead i want to show a message to the user that the application closed after session timed out.
how to achieve that?
Regards,
Lakshmi.
If you want to display, a custom error page instead of the dump you can probably do it in the transaction /nSICF.
Navigate to your WD Components node double click on it.
click on the TAB ERROR PAGES
under this select the TAB Appl. Errors
here if you are in change mode you can specify the redirect URL or custom HTML Page source.
in effect when the application error occurs you would be direct to the URL or HTML page specified would be shown.
if you want to catch the time out itself, before it happens read the below excerpt from Thomas.
Greetings
Prashant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One of the ways that I have done this in the past to calculate what the timeout will be for my application. You have to lookup the system timeout and then override that with the SICF node specific timeout - only if node timeout is shorter than the system timeout. You can then setup a timed trigger to fire shortly before the timeout. The timed trigger value gets bound to the value so that it gets reset on each server roundtime. When the timer triggers, it actually resets the system timeout - but that is OK because what you do is fire an exit navigation plug. This plug can take you to some static page - either from the MIME repository or a stateless BSP page. This static page can proivide a more friendly message that the session timed out and can provide a link to reload the application.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Almost forgot - here is the logic to lookup the timeout:
data: name type pfeparname.
data: value type pfepvalue.
data: l_timeout type icftime.
data: timeout type int4,
trigger_timeout type int4.
clear: timeout, trigger_timeout.
****Get the App Server Timeout
name = 'rdisp/plugin_auto_logout'.
call 'C_SAPGPARAM' id 'NAME' field name
id 'VALUE' field value.
****Is there a specific Timeout set
if wdr_task=>server is bound.
if wdr_task=>server->session_timeout is initial.
timeout = value.
else.
****We got a specific timeout - now convert it to a number of seconds.
data: minutes type i.
l_timeout = wdr_task=>server->session_timeout.
minutes = l_timeout+0(2) * 60.
minutes = minutes + l_timeout+2(2).
timeout = ( minutes * 60 ) + l_timeout+4(2).
****If a specified timeout is larger than the default, it is ignored.
****Use the default instead.
if timeout > value.
timeout = value.
endif.
endif.
else.
timeout = value.
endif.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.