I want a logout functionality to be added to my project,i have gone through the logout examples in the documentation and implemented the same.Although the page in which I have the logout button is getting redirected to home screen but the user data is still in session ,I mean am able to use the project without logging in again. So i need your support to develop this functionality in javascript!.
Thanks in Advance,
regards,
Masakini Rolls
Hello Masakini,
setInterval(function(){$.ajax({type : "GET",url : "https://live.runmyprocess.com/login",data : {},cache : false,async : false,dataType : "text",success : function (data) {},error : function () {$.ajax({type : "GET",url : "https://live.runmyprocess.com/logout",data : {},cache : false,async : false,dataType : "text",success : function (data) {window.location.reload();},error : function () {window.location.reload();}});}});},10000);
Sabine EL RASSY
Thanks for the reply,the code which you have given is working but i want to make the user redirect to login page and ask him to enter the details there, rather than in an alert box which is the present implementation as per the code given.