cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro Session Time-out Issue

Former Member
0 Kudos

Does anyone know how to show a message to the user when Web Dynpro session is timed out?

The scenario is:

The user is filling a WD form. If for some reason the user is distracted and he returns back to his form after 45 minutes then the user can still enter the information in the input fields but the application fails and the user looses his work (because of the session time-out). The reason for 45 minutes time-out setting on WD side is to release the lock on the backend SAP objects.

The user is not getting any warning that his session is timed out.

Has anybody faced similar problems?

Thanks in Advance

AB

Accepted Solutions (0)

Answers (2)

Answers (2)

sureshmandalapu6
Active Contributor
0 Kudos

Hey Anand Bhambure,

You can increase the expiration time as you need.

ExpirationTime

The configuration property ExpirationTime describes the lifetime (in seconds) of a Web Dynpro application on the server before the Web application is terminated by the server. The value assigned to the DefaultExpirationTime parameter in the system configuration is used as the default value.

Right click on your Application -> Properties-> Appl Properties-> New -> Expiration time -> set the time in milliseconds. and save.

Thanks

Suresh

Former Member
0 Kudos

We know how to set the session time out. The problem is we do not want to set it too high and keep the record locked. We need a warning when the session is timed out.

sureshmandalapu6
Active Contributor
0 Kudos

Hi Anand Bhambure,

In that case, you need to write code in the wdInit() or some other event and read the expiration time seconds from the application properties and then calculate the time by seconds decreasing by , and at the end give a messge to the user saying the session is going to out. please refresh.

It wil help u.

thanks

Suresh

Former Member
0 Kudos

Hi,

U can set session time out message using portal development.

create a par file for this n deploy this on server.

chk this link: [https://www.sdn.sap.com/irj/sdn/wiki?path=/display/ep/ep%2bsnippet%2b-%2bportal%2buser%2bidle%2btimeout%2bfor%2blogoff%2b-%2bcustom%2bjavascript]

Hope it will hlp u..

Regards,

Khushboo

Former Member
0 Kudos

Hi Suresh,

Could you please tell me exactly where to change this property? Is it within Visual Admin, ConfigTool or NWA?

Thanks

Khogs

Former Member
0 Kudos

>

> Hey Anand Bhambure,

>

> You can increase the expiration time as you need.

>

> ExpirationTime

> The configuration property ExpirationTime describes the lifetime (in seconds) of a Web Dynpro application on the server before the Web application is terminated by the server. The value assigned to the DefaultExpirationTime parameter in the system configuration is used as the default value.

>

> Right click on your Application -> Properties-> Appl Properties-> New -> Expiration time -> set the time in milliseconds. and save.

>

> Thanks

> Suresh

In which Tool you can change this Property?

p330068
Active Contributor
0 Kudos

Hi Stefen,

Please check in your Web dynpro Application >> Right click on your WD Application >> Edit >> Application Properties >> New >> Pre-defined >> Browse >> Expiration time >> set the time in milliseconds and save.

Hope it will helps

Regards

Arun

Former Member
0 Kudos

Hi,

What about creating a timer object when the application is launched and setting it to run at 1 minute before the session timeout limit. Then, in the event the timer triggers you create a popup message saying the session has timed out.

Gareth.

Former Member
0 Kudos

Hi,

Please try enabling the Work Protect Mode through personalize and check

Regards

Ponnusamy