diff --git a/1.sources/MyHealth/docroot/header.xhtml b/1.sources/MyHealth/docroot/header.xhtml
index 2e76837..5ad7f6d 100644
--- a/1.sources/MyHealth/docroot/header.xhtml
+++ b/1.sources/MyHealth/docroot/header.xhtml
@@ -2,45 +2,35 @@
+ xmlns:p="http://primefaces.org/ui" xmlns:o="http://omnifaces.org/ui">
MyHealth Online Services
+
- function handleLoginRequest(xhr, status, args) {
- if(args.validationFailed || !args.loggedIn) {
- PF('dlgLogin').jq.effect("shake", {times:5}, 100);
- //PF('Login').attr("disabled", false);
- }
- else {
- PF('dlgLogin').hide();
- }
- }
-
- function startLogin() {
- //PF('Login').attr("disabled", true);
- }
+ // Si hay un error AJAX, lo más probable es que la sesión expirase, vamos a la página de error
+ function onAjaxError() {
+ window.location.href = "#{request.contextPath}/error.xhtml?type=expired";
+ }
+