You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/03/07 19:13:00 UTC
[jira] Commented: (WICKET-3515) redirect to a SessionExpiredPage
when the session expires
[ https://issues.apache.org/jira/browse/WICKET-3515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003484#comment-13003484 ]
Martin Grigorov commented on WICKET-3515:
-----------------------------------------
I see no way how to differentiate an expired session than a completely new user.
> 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