[Seaside] Re: Logging out from a webpage

Philippe Marschall philippe.marschall at gmail.com
Tue Jul 31 05:02:47 UTC 2007


2007/7/30, Klaus D. Witzel <klaus.witzel at cobss.com>:
> On Mon, 30 Jul 2007 22:18:57 +0200, Michael Gorsuch wrote:
>
> > On Mon, Jul 30, 2007 at 04:12:30PM -0400, Richard Eng wrote:
> >> If I ?logout? from a webpage, which takes me to a new webpage, how do I
> >> ?invalidate? the previous page or otherwise prevent the user from
> >> revisiting
> >> it (either through the back button or using history)?
> >
> > I would look at WATask's 'isolate' method.  This expires previous pages.
>
> It's also possible to tell the browset to rewrite history, see
>
> - http://www.google.com/search?q=javascript+location.replace+history
>
> for examples. I use that to invalidate the previous page when it can be
> done from a click on a hyperlink.

How very uncool ;) How very low-level and unreliable. We use #isolate:
and #expire for this.

Cheers
Philippe


More information about the Seaside mailing list