I am trying to server a particular error page when session timeouts to my
users. For this i configured the error page on my Application's init method.
But this thing is not working.
I set up the session tiemout in 1 minute, after that nothing happen, I went
through the logs, but wicket didn't throw any PageExpiredException.
When session timeouts wicket simply logs it as: Session unbound:
C061F4F21C41EDF13C66795DAC9EDD02 Removing data for pages in session with id
'C061F4F21C41EDF13C66795DAC9EDD02'
this is my init method in my customApplication
protected void init() {
super.init();
this.getApplicationSettings().setPageExpiredErrorPage(SessionExpiredPage.class);
this.getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
...
...
I try with differents IExceptionSettings like SHOW_NO_EXCEPTION_PAGE or
SHOW_EXCEPTION_PAGE
my SessionExpiredPage.class
public class SessionExpiredPage extends WebPage {
public SessionExpiredPage() {
this.setOutputMarkupId(true);
this.add(new Label("title", "Sesión Expirada"));
CSSLoader.get().appendCssUntil(this, SessionExpiredPage.class);
And i have a custom implementation of AbstractRequestCycleListener i
override the OnException method But, when my session expire, I never pass in
the "onException".
Thank You, best regards.
users. For this i configured the error page on my Application's init method.
But this thing is not working.
I set up the session tiemout in 1 minute, after that nothing happen, I went
through the logs, but wicket didn't throw any PageExpiredException.
When session timeouts wicket simply logs it as: Session unbound:
C061F4F21C41EDF13C66795DAC9EDD02 Removing data for pages in session with id
'C061F4F21C41EDF13C66795DAC9EDD02'
this is my init method in my customApplication
protected void init() {
super.init();
this.getApplicationSettings().setPageExpiredErrorPage(SessionExpiredPage.class);
this.getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);
...
...
I try with differents IExceptionSettings like SHOW_NO_EXCEPTION_PAGE or
SHOW_EXCEPTION_PAGE
my SessionExpiredPage.class
public class SessionExpiredPage extends WebPage {
public SessionExpiredPage() {
this.setOutputMarkupId(true);
this.add(new Label("title", "Sesión Expirada"));
CSSLoader.get().appendCssUntil(this, SessionExpiredPage.class);
And i have a custom implementation of AbstractRequestCycleListener i
override the OnException method But, when my session expire, I never pass in
the "onException".
Thank You, best regards.