cancel
Showing results for 
Search instead for 
Did you mean: 

Logging of user using UMFactory API

govardan_raj
Contributor
0 Kudos

HI experts ,

i have a Requirement , like in sap EP we can use

 

UMFactory.getLogonAuthenticator().logout(httpRequest,httpResponse); 

this code to logoff the user , now in the webdynpro how to logoff in the above way , like im using

 

WDClientUser.forceLogoffClientUser(https://host:50001/irj/portal);

in one of my webdynpro application say WelcomePage to logoff the user based on some conditions.

using UMFactory.getLogonAuthenticator() at the portal component..... we can logoff the user for all webdynpro applications .

but WDClientUser.force....... will logoff the webdynpro application alone where it was used.

Regards

Govardan Raj S

Accepted Solutions (0)

Answers (2)

Answers (2)

pankaj001
Participant
0 Kudos

Hi,

Please follow

Regards,

Pankaj

govardan_raj
Contributor
0 Kudos

hi pankarj,

Thanks for the reply , i want to log off the user from webdynpro application i.e is it possible to log off vai webdynpro code like

 

WDClientUser.forceLogoffClientUser();...........

etc and not from the portal.

The above link it suggested refers  to log off procedure at portal component .

Regards

Govardan Raj S


junwu
Active Contributor
0 Kudos

log off for all application? log off for one application?

how you define that? how you know that?

govardan_raj
Contributor
0 Kudos

Dear Junwu,

I have 5 webdynpro applications , for each application we have seperate iview, portal page and portal role.

so welcome is one role having welcome page ---> displaying pending sales order requests  etc..

     Sales Order is another role  ---> where we can create a sales order

    etc .......

now assume based on a particular condition i need to log off the user, so im using

WDClientUser.forceLogoffClientUser(https://host:50001/irj/portal);    in welcome page applicaiton , when this code is executed , only welcome page application displays that webynpro page got expired if i refresh the page or reoload also it doesnt open, but when i click sales order Role, or any other role , still those applications are working and i can fetch data and update data to the r/3 via rfc,

ideally when i used wdclientuser.forcelogoffclientuser(); at welcome application , all 5 different  webdynpro applications in all the roles should get expired..

but it is happening only in welcome page.

Regards

Govardan Raj

Former Member
0 Kudos

Do you have any kind of Single Sign-on between your desktop and SAP Portal like SPNego? If so, things get tricky.

Please also check if you get consistent behavior across different browsers.

govardan_raj
Contributor
0 Kudos

No i dont have any single sign on ,

i have a single utils dc used in all these applications , in wdDoInit() of all 5 different webdynpro dcs im calling a method in the utils dc ,

where a condtion is checked and if that condition is false then on executing

WDClientUser.forceLogoffClientUser(https://host:50001/irj/portal);    all applications are give dump.

if that condition is true all applications are working normal.

But actually i want to log off the user completely from the portal.

I mean on using above method , my masth head ,roles, all are visible only webdynprp part(screen) will shows dump.

is it possible to log off the user completely

Regards

Govardan


Former Member
0 Kudos

Hi

govardan_raj
Contributor
0 Kudos

hi,

Shiyu wang,

Im using AS java 7.01 version .

Regards

Govardan Raj


Former Member
0 Kudos

Hi,

  this link may help