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:
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");
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,