cancel
Showing results for 
Search instead for 
Did you mean: 

auto logout for web dynpro appl

former_member568822
Active Participant
0 Kudos

Hi,

How i make my web dynpro application auto logout after time out?

I able to make my application time out but it not logout.

Can anyone give me a guide?

thank you!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

You can get the value of the ExpirationTime parameter using the following line of code

wdComponentAPI.getApplication().getApplicationInfo().findInApplicationProperties("sap.expiration").getValue();

Now once the expiration time crosses the value use WDClientUser.forceLogoffClientUser() to log off

Best Regards

Chaitanya.A

Former Member
0 Kudos

Hi,

Question to Chaitanya : once the application has expired how will he execute the forceLogoffClientUser API?

May be you can try this:

you can have a TimedTrigger UI element on each view. Set the period to some seconds less than the "sap.expirationtime" property of the application. So the steps would be:

1. Set the "ExpirationTime" property of the application.

2. The method that will be invoked by the TimedTrigger (onAction property) does the following:

WDClientUser.forceLogOffClientUser();

Regards,

Satyajit.

former_member568822
Active Participant
0 Kudos

hi,

thanks for reply. The code you provide is getting ExpirationTime value but how i get the current value?

former_member568822
Active Participant
0 Kudos

Hi,

thanks for you reply.

The solution that you provide is for active and inactive user. I only need

to logout if the user is inactive. Can i get a ExpirationTime status from

my program when the user refresh the web?

thank you

Answers (0)