PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WB21] - Custom Login Expiry Page
[WB21] - Custom Login Expiry Page
Iniciado por guest, 13,jul. 2016 14:47 - 1 respuesta
Publicado el 13,julio 2016 - 14:47
Hi All

WB21 - Classic site with Ajax

Is there a way to load a custom page when the login has expired rather than the default Webdev session expired page?

TIA
Publicado el 13,julio 2016 - 23:00
Hi JP,

I'm not sure what the question is, so here are two answers:

1. webdev server includes a tool allowing to change the standard error pages by a custom one (sorry I don't have any more precision, but I saw that a long time ago and never needed it)

2. If you want to manage the session time out yourself, you can:
- in your page template (so that it's in all pages) (every minute, by example)
- add a timer
- in the timer code (browser), do an ajaxexecuteasynchronous of a procedure (server) adding one to a global counter
- then in that same procedure, test the counter. If greater than time out, do whatever you want to do when a time out occurs (display your own static page or anything else)
- in the page load of your template (and anything else that counts as an action by the user), reset the counter to zero

Best regards