commento/frontend/js/logout.js
2018-06-05 14:23:32 +05:30

9 lines
162 B
JavaScript

(function (global, document) {
global.logout = function() {
global.cookieSet("session", "");
document.location = "/login";
}
} (window, document));