Skip to Content
avatar image
Former Member

Invalidate the WD Java Application Session before closing the Browser Windo

Hello Experts,

We have a WD Java application on which we've put an application authentication property.

Now after entering the user credentials, the user is successfully able to access the application.

We've put a logout button on the WD application on which we want the session to get invalidated and the window to be closed.

If I use the below line:

WDClientUser.forceLogoffClientUser(String);

the user is navigated to the desired logoff page.

And If I use the below lines:

String Url = WDURLGenerator.getWebResourceUrl(wdComponentAPI.getComponent().getDeployableObjectPart(),"Static.html");

wdThis.wdGetHomePageCompWindowInterfaceViewController().wdFirePlugLogOut(Url);

the browser window gets closed.

But in this case, if the user enters the application url again; the user is able to access the application directly without an authentication which means that the session is not invalidated.

I also tried to use both the lines together but even then it did not invalidate the session.

Please suggest on how we can invalidate the WD Java application session before closing the browser window.

Thanks & Regards,

Anurag

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 21, 2011 at 03:17 PM

    Perhaps a javascript in your html page to delete the sap cookie will do the trick for your.

    Regards,

    Mahesh

    Add comment
    10|10000 characters needed characters exceeded