$().ready(()=>{
$.get("?modulo=hKCgn6M%3D&controlador=hKCgn6M%3D&accion=rJqeo6WjjJemn6ef")
.done(function(respuesta){
if (respuesta == false) {
notificacion('No hay respuesta','warning');
}
else{
var datos = JSON.parse(respuesta);
tiempoSesionG=parseInt(datos.info.tiempoSesion);
setInterval(function(){
tiempoSesionG=tiempoSesionG-1;
if (tiempoSesionG===0) {
$.get("?modulo=hKCgn6M%3D&controlador=hKCgn6M%3D&accion=nJasqqepoqSGm6uaqKR%2FhY53hY8%3D")
.done(function(respuesta){
if (respuesta == false) {
notificacion('No hay respuesta','warning');
}
else{
datos = JSON.parse(respuesta);
if (datos.status) {
window.location.href = "?modulo=hKCgn6M%3D&controlador=hKCgn6M%3D&accion=oZ%2Bdm60%3D&warning=i5ZZqpqmppuh%2BetRnqJVqKKXoKanUaybqJ385aE%3D&";
}
}
})
.fail(function(){
console.log('Error al cerrar la sesiĆ³n')
});
}
}, 1000);
}
})
.fail(function(){
});
});