[
https://issues.apache.org/jira/browse/WICKET-3515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-3515.
-------------------------------------
Resolution: Later
The current Sevrlet specification doesn't provide means to implement that.
> redirect to a SessionExpiredPage when the session expires
> ---------------------------------------------------------
>
> Key: WICKET-3515
> URL: https://issues.apache.org/jira/browse/WICKET-3515
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-core
> Reporter: Gregor B. Rosenauer
> Priority: Minor
>
> I have the following - quite common I dare say - usecase:
> When the user lets the session timeout and tries to access a page of my
> Wicket application, I want to redirect to a special error page that informs
> the user the session has timed out.
> I don't want to redirect straight to the LoginPage as would be normally done
> when Wicket automatically calls my overrided getSignInPageClass().
> Instead, I want to differentiate between an unauthorised access (without ever
> having logged in) and a session timeout.
> I am aware that I can use a ServletFilter to handle this, but I would prefer
> to handle this in Wicket.
> So I propose to introduce a method similar to
> getApplicationSettings().setPageExpiredErrorPage, like
> getApplicationSettings().setSessionExpiredErrorPage.
> This page would then be displayed instead of the normal login page when the
> user tries to access a protected page after a session has timed out.
> See also WICKET-1002 and
> http://stackoverflow.com/questions/1026846/how-to-redirect-to-login-page-when-session-is-expired-in-java-web-application
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira