You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Brian Lee <br...@3rsoft.com> on 2001/05/07 04:02:05 UTC

Share session info among more than one turbine application

I'd like to share session info among more than one turbine application.
I searched related message in mail archive but I can't find where to modify.

Is it example available?

Thanks.

--
Brian Lee

Re: Share session info among more than one turbine application

Posted by Jon Stevens <jo...@latchkey.com>.
on 5/6/01 9:25 PM, "Brian Lee" <br...@3rsoft.com> wrote:

> Does "same context" means several apps in one turbine webapps directory?

Do you understand how the ServletContext works or what a webapp is? If not,
go get Jason Hunters book on Servlets or read the Servlet API.

> I generated "sample", "sample2" apps but I found they don't share session
> info.

Exactly.

-jon


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


RE: Share session info among more than one turbine application

Posted by Brian Lee <br...@3rsoft.com>.
Does "same context" means several apps in one turbine webapps directory?
I generated "sample", "sample2" apps but I found they don't share session info.


-----Original Message-----
From: Jon Stevens [mailto:jon@latchkey.com]
Sent: Monday, May 07, 2001 11:46 AM
To: Turbine-user
Subject: Re: Share session info among more than one turbine application


on 5/6/01 7:02 PM, "Brian Lee" <br...@3rsoft.com> wrote:

> I'd like to share session info among more than one turbine application.
> I searched related message in mail archive but I can't find where to modify.
> 
> Is it example available?
> 
> Thanks.

If they are in the same context, then it isn't a problem.

If they are not in the same context, then you need to look outside of the
servlet api to allow you to do that (such as using a centralized session
storage solution).

We are working on making it so that more than one turbine app can live in
the same context without problems, but we are not 100% there yet. It will be
something that will be added this month (as it is slated for the 2.1
release).

-jon

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org




Re: Share session info among more than one turbine application

Posted by Jon Stevens <jo...@latchkey.com>.
on 5/6/01 7:02 PM, "Brian Lee" <br...@3rsoft.com> wrote:

> I'd like to share session info among more than one turbine application.
> I searched related message in mail archive but I can't find where to modify.
> 
> Is it example available?
> 
> Thanks.

If they are in the same context, then it isn't a problem.

If they are not in the same context, then you need to look outside of the
servlet api to allow you to do that (such as using a centralized session
storage solution).

We are working on making it so that more than one turbine app can live in
the same context without problems, but we are not 100% there yet. It will be
something that will be added this month (as it is slated for the 2.1
release).

-jon

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org