That you get back to your last page when hitting the back button has
nothing to do with Wicket. It's just what browsers do when you hit the
back button. I guess you are using firefox (3), and firefox 3 will show
a page from its in-memory cache, even if the page headers tell it the
page is expired long ago, must be reloaded, and must be revalidated
(which is what wicket tells it by default). Google on "firefox cache
reload" or something for how firefox caches pages and for suggestions on
how to force a page reload.

On Thu, 04 Dec 2008 18:35:09 +0200, "Serkan Camurcuoglu"
<[EMAIL PROTECTED]> said:
> you can set your application's home page as your expired page or throw a 
> restartresponseexception (to home page) from the constructor of your 
> page expired page.. at least I do it that way..
> 
> 
> vishy_sb wrote:
> > Thanks for the reply there Nino. I have set up a custom expired page and 
> > have
> > set the following in Application class 
> > getApplicationSettings().setPageExpiredErrorPage(PageExpired.class);
> >
> > Now the page expired is set to this page. But still on hitting the back
> > button I get back to the page. I tried  using the
> > SimplePageAuthorizationStrategy in my Application.init() method. The code
> > that put in there looks something like this
> >
> > SimplePageAuthorizationStrategy authorizationStrategy = new
> > SimplePageAuthorizationStrategy(
> >                 LimitManagerPage.class, PageExpired.class)
> >             {
> >                     protected boolean isAuthorized() {
> >                             // Authorize access based on user 
> > authentication in the session
> >                             if(((WebSession) 
> > Session.get()).isSessionInvalidated()){
> >                                     return false;
> >                             } else {
> >                                     return true;
> >                             }
> >                     }
> >             };
> >  
> >     getSecuritySettings().setAuthorizationStrategy(authorizationStrategy);
> >
> > But this doesn't provide the desired result as well. This doesn't even show
> > my custom PageExpired web page. Any ideas about why this is not working or
> > something else that I can do to get this to work.
> >
> > Thanks in advance,
> > vishy
> >
> >
> >   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to