cancel
Showing results for 
Search instead for 
Did you mean: 

Logoff function sapui5

0 Kudos

I need a log off function which will clear login user. I have seen ajax code which will logout user but i need to know all possible ways to logoff user from browser by clearing cache or by changing header. Please give me all possible ways with code and comments so that i can learn AJAX, JQuery and JS ways to logoff an user !

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

For logoff SAP standard service is available. This will take care of clearing the session and SAML token. We have to call it like below:

$.ajax({

url: getProxyUrl("/sap/public/bc/icf/logoff"),

success: function (data, textStatus, jqXHR) {

window.open(logoutURL,"_self");

},

error: function (jqXHR, textStatus, errorThrown) {

} });

akshaya_p
Contributor
0 Kudos

What is the logoutURL here?

Answers (1)

Answers (1)

karthikarjun
Active Contributor
0 Kudos