Hi All,
I want to auto logout from the launchpad using sapui5 application. If the idle time reached 5mins after that launchpad should logout automatically using SAPUI5 application. I have tried to call the logout page but I'm getting 404 not found error. I have attached the screenshot and code for your reference. Please advise me on this issue. cflogoutissue.png
xs-app.json file<br>{ "welcomeFile": "/index.html", "authenticationMethod": "route", "logout": { "logoutEndpoint": "/do/logout" }, "routes": [ {
Controller.js<br><br> // Interval Function StartfnInterval: function () { var that = this; timer = setInterval(function () { that.onLogout(); }, 60000); // }, 300000); }, onLogout: function () { var that = this; sap.m.URLHelper.redirect("do/logout", false); console.log("Auto Logout /do/logout"); },