6 lines
212 B
JavaScript
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";
|
|
});
|
|
} |