How to handle session timeout using ajax requests in wickets?

How can I handle the session timeout while executing an ajax request with a wicket?

Currently (for example, using AbstractAjaxTimerBehavior), a user is redirected to an expired page. I would like to handle this on the client side using javascript (for better user convenience).

Overriding onException (does nothing) and getFailureScript work well if another error occurs on the server side or the server does not respond at all. But not if the server is responding, but the user calibration session has expired.

Any suggestions are greatly appreciated, thanks a lot.

Peter

+3
source share
2

, , , . , web.xml.

, PageParameters. , , PageParameters.

0

Source: https://habr.com/ru/post/1766735/


All Articles