cancel
Showing results for 
Search instead for 
Did you mean: 

How to make "check for multiple logons" mandatory in webdynpro application.

0 Kudos

Hi SDN members,

Im having a problem with an application developed in webdynpro abap.

We require that end-user only have a session per computer (ip address),

I already tried to achieve this by configuring the webdynpro application throguh SICF and going to Error Pages -> Logon Errors --> System Logon and mark the checkbox Check for multiple logons.

This configurations give only a warning when the user logs multiple times, and show a checkbox letting the user decide to end or not the previous sessions.

How to make end previuos sessions mandatory ??

Regards,

Franklin Cedillo

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You would have to enforce this at the application level. You can get the IP address of the current client from the framework - IF_WD_APPLICATION method GET_REMOTE_ADDRESS.

You could write an entry with the IP address into a temporary table during WDDOINIT. You could clear the entry in the WDDOEXIT. Also during the WDDOINIT, check to see if there is already an entry for this IP address. If so, then fire an exit nagivation plug to a static MIME object or BSP page that explains why the user can only be logged in once.