Hello,
We have a built an SAPUI5 application on SAP HANA XS. In the shell there is a logout functionality in shell, but not sure on how to implement it. We are using the below code for the logout function (copied from online).
logout:function(){
oShell.forceInvalidation();
oShell.destroy();
sap.ui.getCore().applyChanges();
jQuery(document.body).html("<span>Logged out successfully.</span>");
},
But even though the page clears but on the browser refresh, it logs in automatically, which means it has not logged out really from the server / cookies.
Could you pls provide some pointers on how to implement this? whether the $ api's in XSJS provide any such functionality?
Thanks,
Chathia.