Files
opensem/build/js/include/core/session.js
2020-07-26 16:51:45 +02:00

6 lines
212 B
JavaScript

function initAjaxCheckSession() {
$( document ).ajaxError(function( event, jqxhr, settings, thrownError ) {
alert("Session expired. You'll be take to the login page");
location.href = "/login";
});
}