cancel
Showing results for 
Search instead for 
Did you mean: 

session management through web dynpro

Former Member
0 Kudos

Hi All,

I tried to implement session management( getting session ids and passing values amongst components) using IScope. It works fine but I went through the following post and according to it IScope should not be used.

Can anyone suggest any alternative which serves the purpose?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Have you tried using the <i>WDScopeUtil</i> class? You can use a code like the following:

//Put values into the scope of the task
WDScopeUtil.put(WDScopeType.TASK_SCOPE, "key", "value");

//Get the value using the key
WDScopeUtil.get(WDScopeType.TASK_SCOPE, "key");

Regards,

Satyajit.

Former Member
0 Kudos

Thanks Satyajit,

I somehow misunderstood from the post that wdscopeutil is not advisable.

But I dont think i would be able to pass any value other than String like list,hashmaps etc.

I will use this for passing data. But one more input about getting the session id:

I used wdserverstate but it returns me two values.

Any idea?

Former Member
0 Kudos

Hi Satyajit & Priyanaka,

Are you succeded in using WDScopeUtil? I tried with WDScopeUtil with all WDScopetypes. but i did'nt get the value of key.

Regards,

Naga

Answers (1)

Answers (1)

Former Member
0 Kudos

i used wdscopeutil