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 - 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:
{{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 timeout.


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to