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]

Reply via email to