Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 17405 invoked by uid 500); 20 Dec 2002 10:17:16 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 17394 invoked from network); 20 Dec 2002 10:17:12 -0000 X-Authentication-Warning: ags01.agsoftware.dnsalias.com: apache set sender to agallardo@agsoftware.dnsalias.com using -f Message-ID: <1573.10.0.0.5.1040379256.squirrel@ags01.agsoftware.dnsalias.com> Date: Fri, 20 Dec 2002 04:14:16 -0600 (CST) Subject: Re: cocoon-session management. From: "Antonio Gallardo" To: In-Reply-To: <3E02E8EC.2000008@saxess.com> References: <004a01c2a7ec$2f4114f0$3f0c10ac@nkishore> <3E02DECF.3070109@saxess.com> <1530.10.0.0.5.1040377365.squirrel@ags01.agsoftware.dnsalias.com> <3E02E8EC.2000008@saxess.com> X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.9) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Hussayn: I agree with you. In that case you lost the session tracking. Apparently Cocoon manages his own sessions. I think we need to make Cocoon to work with the Tomcat Sessions or (to be more general) with the Servlet Container Session Management. In that way all will be OK accross multiple web applications. Yesterday I was reading about the new persistent session management in Tomcat 4.1.x. I think we can make use of it. But, since Cocoon works with the Java Servlet Specification 2.2 and not 2.3, this can be an issue to resolve. I feel like you in that the session management is weak at the current development of Cocoon. We need some improvement here to help webapplication development. The best approach is try to be the most closest to the specification 2.3. At the end, for session management in only one application, the current authentication framework is OK. Sorry for the incoveniences. :-D Antonio Gallardo. SAXESS - Hussayn Dabbous dijo: > Maybe there is a missunderstanding here? > > cocoon preserves session when you keep within your > webapplication. But i am talking about another > problem: > > If you are specifying a source over the http: protocol, > cocoon simply opens another HTTPClient request. This > request does NOT preserve the session state! > > I am talking about following setup: > > You have two separate webapplications not necessaryly > running in the same container! One app is the cocoon > application. The other app is a session based webapp. > > Now you setup a pipeline, which gathers data from the > other webapp. Here you are lost. > > What basically is missing: The session state is > usually preserved within cookies, or by URL-rewriting. > If sessions are cookie based, we need to pass the session > cookie through cocoon. And this is definitely not implemented > yet. Or my understanding of the cocoon code is absolutley > wrong ;-) > > > regards, hussayn > > > Antonio Gallardo wrote: >> SAXESS - Hussayn Dabbous dijo: >> >>>cocoon basically does not preserve session state in >>>subrequests. >> >> ? I dont think soo. I have currently running an application 100% >> Cocoon based that works with the authentication framework. And it >> looks like the sessions are preserved. >> >> Can you explain more why you told that? >> >> Antonio Gallardo >> >> >>>i'm currently working together with another developer on a >>>general solution. We are investigating severeal approaches. >>> >>>Currently we are looking at the idea to add another >>>protocol to cocoon, or enhance the http protocol. There >>>was the idea to enhance the new webproxy generator, but >>>we want to check out first, if the protocol enhancement >>>would do a better job here. It may be a more general >>>approach... >>> >>>I made some basic tests and things work fine. I expect to >>>write some preliminary results tonight or tomorrow. >>> >>>As i see multiple requests on this theme i get convinced >>>there is severe need for this feature. >>> >>>I want to inform you, that this enhancement is a commercially >>>triggered work. The participants in the project are beeing >>>payed for their work but the results are kept open source... >>> >>>I'd like to see more projects of this kind. So also individual >>>programmers could can benefit ... >>> >>>regards, hussayn >>> >>>Kishore wrote: >>> >>>>Hi all, >>>> I am using cocoon to apply XSL transformation >>>>on XML files generated by my 'SERVLETS'. So, cocoon >>>>intercepts the client request, calls the proper application servlet, >>>> then applies xsl mapping on the servlet's output and returns the >>>> result as a html file. >>>> Now, the problem I am facing is, this way I am unable >>>>to >>>>maintain sessions among my servlet's clients. Each new request coming >>>> to my servlet is creating a session afresh because it's not the >>>> client directly, but cocoon that's making a request for my servlets. >>>> Has anybody faced this problem or know the solution? >>>>Pl. >>>>let me know ASAP. >>>> >>>>regards >>>>nanda kishore. >>> >>> >>>--------------------------------------------------------------------- >>> Please check that your question has not already been answered in the >>> FAQ before posting. >>> >>>To unsubscribe, e-mail: >>> For additional commands, e-mail: >> >> >> >> >> >> --------------------------------------------------------------------- >> Please check that your question has not already been answered in the >> FAQ before posting. >> >> To unsubscribe, e-mail: >> For additional commands, e-mail: >> > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: