$scope.Back = function () { window.history.back(); } $scope.SignOut = function () { //$http.post('/Account/ManageUserLogDet', { }).success(function (data) { }); $http.get('/Home/LogOff').success(function () { setCookie("USER_SEQ", $scope.USER_SEQ, -1); setCookie('USER', "", -1); setCookie("MEMO_REQUEST_LIST", "", -1); $("#loading").css("display", "block"); if (window.location.protocol == "https:") { window.location.href = "https://" + window.location.host; } else window.location.href = "http://" + window.location.host; }); $("#loading").css("display", "none"); }