cancel
Showing results for 
Search instead for 
Did you mean: 

Invalidate the WD Java Application Session before closing the Browser Windo

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Regards,

Mahesh

Former Member
0 Kudos

Hi Mahesh,

In that case, can you please share the code for deleting the sap cookie.

Best Regards,

Anurag

Former Member
0 Kudos

http://techpatterns.com/downloads/javascript_cookies.php

this link explains the functions for cookie deletion.

Regards,

Mahesh