cancel
Showing results for 
Search instead for 
Did you mean: 

How to kill a portal session through webdynpro application

Former Member
0 Kudos

Hi,

I need to kill my active portal authentication ticket through my WD application. I think if the authentication ticket gets invalidated then a new logon is required. I need to use this functionality in my WD application. Is it possible...i.e to configure my WD application in such a way that once my application timeout is reached the portal authentication ticked gets invalidated and a new logon is provided.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

May be you can have a TimedTrigger UI element on the view. Set the period to some seconds less than the "sap.expirationtime" property of the application. So the steps would be:

1. Set the "<i>ExpirationTime</i>" property of the application.

2. Set the "<i>Authentication</i>" property of the application to <b>true</b>.

3. Set the "<i>LogOffURL</i>" property of the application to either the portal or the WD application again.

Now the method that will be invoked by the TimedTrigger does the following:

String url = <read the application property "sap.logoffurl" of the application>;
WDClientUser.forceLogOffClientUser(url);

Regards,

Satyajit.

Former Member
0 Kudos

Hi Satyajit,

Thank you for your suggestions. I'll try and implement that and get back with the result. I would also like to know what happens when I'm using my application as standalon. Will the same principle work in that case.

Awaiting your response.

Regards,

Pinac