that does work no
you cant invalidate the session and then redirect to an instance/session
page.
What you could try is the invalidateNow() method and then the new instance
page will be created in the new session.

Also clearing pagemap or maybe just replacing the http session should work
(a new method on Session in the latest releases)

On Wed, Nov 5, 2008 at 12:00 PM, Matthias Keller
<[EMAIL PROTECTED]>wrote:

> Hi
>
> I've got a wizard letting the user enter some information.
> In the onFinish() method, I redirect him to my ConfirmationPage:
> setResponsePage(new ConfirmationPage());
> (I chose the instance method instead of the class method as I don't want to
> have a bookmarkable page there)
>
> On the ConfirmationPage I need access to the session a last time to display
> a message like:
> "Thank you Mr XXX, you'll hear from us soon"
>
> After that I want to invalidate my session so that all the wizard pages are
> becoming inaccessible (I have to set them to versioned as the customer wants
> back button support inside the wizard...).
> Unfortunately, when I call  getSession().invalidate();  anywhere in my
> ConfirmationPage (be it the constructor, onAfterRender() or even
> onDetach()), I'll never see the ConfirmationPage as I get the Page Expired
> message instead....
> How can I achieve the destruction of the session (and thus the pages) but
> still display this one last page? Reloading this confirmation page may give
> the  Page Expired  message, I dont care.
>
> Thanks
>
> Matt
>
> --
> [EMAIL PROTECTED]  +41 44 268 83 98
> Ergon Informatik AG, Kleinstrasse 15, CH-8008 Zürich
> http://www.ergon.ch
> ______________________________________________________________
> e r g o n    smart people - smart software
>
>
>

Reply via email to