Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Logout from SAPUI5 / XSJS page

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.

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question