Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Logout from SAPUI5 / XSJS page

$
0
0

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.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>