You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Jeff Ramsdale <je...@asix.com> on 2003/10/28 00:03:13 UTC

Continuations and multiple sessions

Hi all,

Up till now I've only casually been following progress on flow and forms
development in Cocoon but recently I've had opportunity to dig deeper (new
job--woo hoo!). So my question here may already have been answered and I
missed it. Please forgive me if that's the case.

I'm curious about how flow/continuations are handled in a situation where
the user has begun interacting with a flow-managed page and then they open a
new window (via CTRL-N, say) and the two windows get out of sync with each
other. Is it possible to invalidate one and not the other? How can the
server identify each?

Thanks,

Jeff





Re: Continuations and multiple sessions

Posted by Sylvain Wallez <sy...@apache.org>.
Jeff Ramsdale wrote:

>Hi all,
>
>Up till now I've only casually been following progress on flow and forms
>development in Cocoon but recently I've had opportunity to dig deeper (new
>job--woo hoo!). So my question here may already have been answered and I
>missed it. Please forgive me if that's the case.
>
>I'm curious about how flow/continuations are handled in a situation where
>the user has begun interacting with a flow-managed page and then they open a
>new window (via CTRL-N, say) and the two windows get out of sync with each
>other. Is it possible to invalidate one and not the other? How can the
>server identify each?
>  
>

When you create a new window, you actually create a new branch in the 
continuation tree. From there on, each window leaves in its own context, 
but they share every information that was declared before the fork.

If at one point, you don't want the user to be able do go back or to 
continue interacting with the flow in another window, you can invalidate 
the continuation tree: cocoon.sendPageAndWait() returns the created 
continuation which has an invalidate() method.

For further details on this, please refer to my presentation at the GT, 
slides 16, 17, 18.

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com



Re: Continuations and multiple sessions

Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Jeff Ramsdale dijo:
> Hi all,
>
> Up till now I've only casually been following progress on flow and forms
> development in Cocoon but recently I've had opportunity to dig deeper
> (new job--woo hoo!).

Congrats!!! :-D


> I'm curious about how flow/continuations are handled in a situation
> where the user has begun interacting with a flow-managed page and then
> they open a new window (via CTRL-N, say) and the two windows get out of
> sync with each other. Is it possible to invalidate one and not the
> other? How can the server identify each?

Well, this is under discussion right now. But under other perspective:
The user send the link to a friend (in other machine).

AFAIK, this is very hard to manage and there has been some comments about
how to solve this tpe of solutions, but still there is not a clear "green
light" to follow.

Best Regards,

Antonio Gallardo