diff --git a/1.sources/MyHealth/docroot/header.xhtml b/1.sources/MyHealth/docroot/header.xhtml
index 02bed27..5ad7f6d 100644
--- a/1.sources/MyHealth/docroot/header.xhtml
+++ b/1.sources/MyHealth/docroot/header.xhtml
@@ -9,26 +9,13 @@
MyHealth Online Services
+
- function handleLoginRequest(xhr, status, args) {
- if(args.validationFailed || !args.loggedIn) {
- PF('dlgLogin').jq.effect("shake", {times:5}, 100);
- PF('btnLogin').enable();
- }
- else {
- PF('btnLogin').enable();
- PF('dlgLogin').hide();
- }
- }
-
- function startLogin() {
- PF('btnLogin').disable();
- }
-
- function onAjaxError() {
- alert('Ajax error');
- }
+ // 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";
+ }
@@ -39,10 +26,12 @@