Hi,

I have implemented half a logout confirmation page. The half that works is
very cool (I think someone posted the code on this list). Click "Logout" and
the session is terminated and you are returned to the login page. The bit
that's missing is the cancel method. What I want is for "Cancel Logout" to
return the user to whatever page they were on when they decided to logout.

I have a navigation header with Logout (among others). What I'm thinking is
that each page would save its contextID in the Session using

this.context().contextID();

and then save the page in the session cache with

this.session().savePage(this);

if the user cancels the logout, I can just do something like

return session().restorePageForContextID(mySavedContextID);

This all seems to be the way to do it but I'm wondering is it the best way
to do what I want? If so, it seems that every WOComponent would need to save
itself and its contextID when it's constructed so it might be better to
subclass WOComponent.

Thoughts? Advice?

Thanks a lot

--Marc Respass

Reply via email to