You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ovidiu Hurducas <ov...@gmail.com> on 2008/11/28 16:17:01 UTC

[T5] - How to restore/re-attach to an ASO after user leave application?

Hi!
I have a Tap 5 (5.0.15) application with the following scenario:

User access a page and init ASO -> User than leave on a 3'rd party site (can
save some params here) -> user come back on my site and wants to access the
ASO again (saved params can be provided here)

So the questions are: How do I reattach the user to its previous session?
What parameters should be provided in order to achieve that?
What is the best option for re-entry point? (page, RequestFilter, anything
else?)

Thank you!

--Ovidiu

Re: [T5] - How to restore/re-attach to an ASO after user leave application?

Posted by Martijn Brinkers <ma...@gmail.com>.
Are you using IE? IE sometimes starts a new process for a new window.
This process does not have access to the cookies in the other IE
process.

See for example: http://support.microsoft.com/kb/831678


On Fri, 2008-11-28 at 18:26 +0200, Ovidiu Hurducas wrote:
> Thanks Andy,
> 
> That's very strange. I've tested this scenario (with cookies enabled and
> disabled) with a RequestFilter with http redirect as a re-entry point.
> 
> In the service method when I'm calling:
> 
> TAState state = stateManager.getIfExists(TAState.class);
> 
> this allways retrun null no matter what.
> 
> Also I've tested with a page as a re-entry:
> 
> @ApplicationState
> private TAState state;
> 
> this is also null. Very weird!
> 
> Some parameters (like jsessionid) can be provided as needed if user don't
> have cookies enabled.
> 
> Cheers!
> 
> 
> On Fri, Nov 28, 2008 at 6:01 PM, Andy Pahne <an...@googlemail.com>wrote:
> 
> >
> > The session reattachment part: as long as the session id is stored in the
> > default place (cookie), it should work right out of the box. It does not
> > matter if the browsing session is interrupted shortly, as long as the
> > session does not time out or the user closes and reopens his browser.
> >
> > I don't understand the parameters thing. Please be a bit more specific.
> >
> > Andy
> >
> >
> >
> >
> >
> > Ovidiu Hurducas schrieb:
> >
> >  Hi!
> >> I have a Tap 5 (5.0.15) application with the following scenario:
> >>
> >> User access a page and init ASO -> User than leave on a 3'rd party site
> >> (can
> >> save some params here) -> user come back on my site and wants to access
> >> the
> >> ASO again (saved params can be provided here)
> >>
> >> So the questions are: How do I reattach the user to its previous session?
> >> What parameters should be provided in order to achieve that?
> >> What is the best option for re-entry point? (page, RequestFilter, anything
> >> else?)
> >>
> >> Thank you!
> >>
> >> --Ovidiu
> >>
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T5] - How to restore/re-attach to an ASO after user leave application?

Posted by Ovidiu Hurducas <ov...@gmail.com>.
Thanks Andy,

That's very strange. I've tested this scenario (with cookies enabled and
disabled) with a RequestFilter with http redirect as a re-entry point.

In the service method when I'm calling:

TAState state = stateManager.getIfExists(TAState.class);

this allways retrun null no matter what.

Also I've tested with a page as a re-entry:

@ApplicationState
private TAState state;

this is also null. Very weird!

Some parameters (like jsessionid) can be provided as needed if user don't
have cookies enabled.

Cheers!


On Fri, Nov 28, 2008 at 6:01 PM, Andy Pahne <an...@googlemail.com>wrote:

>
> The session reattachment part: as long as the session id is stored in the
> default place (cookie), it should work right out of the box. It does not
> matter if the browsing session is interrupted shortly, as long as the
> session does not time out or the user closes and reopens his browser.
>
> I don't understand the parameters thing. Please be a bit more specific.
>
> Andy
>
>
>
>
>
> Ovidiu Hurducas schrieb:
>
>  Hi!
>> I have a Tap 5 (5.0.15) application with the following scenario:
>>
>> User access a page and init ASO -> User than leave on a 3'rd party site
>> (can
>> save some params here) -> user come back on my site and wants to access
>> the
>> ASO again (saved params can be provided here)
>>
>> So the questions are: How do I reattach the user to its previous session?
>> What parameters should be provided in order to achieve that?
>> What is the best option for re-entry point? (page, RequestFilter, anything
>> else?)
>>
>> Thank you!
>>
>> --Ovidiu
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: [T5] - How to restore/re-attach to an ASO after user leave application?

Posted by Andy Pahne <an...@googlemail.com>.
The session reattachment part: as long as the session id is stored in 
the default place (cookie), it should work right out of the box. It does 
not matter if the browsing session is interrupted shortly, as long as 
the session does not time out or the user closes and reopens his browser.

I don't understand the parameters thing. Please be a bit more specific.

Andy





Ovidiu Hurducas schrieb:
> Hi!
> I have a Tap 5 (5.0.15) application with the following scenario:
>
> User access a page and init ASO -> User than leave on a 3'rd party site (can
> save some params here) -> user come back on my site and wants to access the
> ASO again (saved params can be provided here)
>
> So the questions are: How do I reattach the user to its previous session?
> What parameters should be provided in order to achieve that?
> What is the best option for re-entry point? (page, RequestFilter, anything
> else?)
>
> Thank you!
>
> --Ovidiu
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org