Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 21668 invoked by uid 500); 7 Apr 2003 13:42:58 -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 21655 invoked from network); 7 Apr 2003 13:42:57 -0000 Received: from web40504.mail.yahoo.com (66.218.78.121) by daedalus.apache.org with SMTP; 7 Apr 2003 13:42:57 -0000 Message-ID: <20030407134259.87013.qmail@web40504.mail.yahoo.com> Received: from [146.140.6.54] by web40504.mail.yahoo.com via HTTP; Mon, 07 Apr 2003 06:42:59 PDT Date: Mon, 7 Apr 2003 06:42:59 -0700 (PDT) From: Kavitha Ramesh Subject: Re: Session Management in cocoon To: cocoon-users@xml.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1167278428-1049722979=:86255" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --0-1167278428-1049722979=:86255 Content-Type: text/plain; charset=us-ascii Thanks a lot! Christopher Painter-Wakefield wrote: 1) The EncodeURL Transformer will append the jsessionid to each URL, as necessary (that is, if the browser has cookies turned off). See http://xml.apache.org/cocoon/userdocs/transformers/encodeurl-transformer.html for usage. There was a bug in earlier versions of this, that wouldn't append the jsessionid on the first request, but that may be fixed now. 2) I believe Cocoon doesn't manage sessions, that is handled by the servlet engine (Tomcat, for most folks). See the docs for your servlet engine. 3) Basically you can work with sessions in Cocoon just like you can in any Java servlet. For most components, you'll need to get the session from the request object. E.g., in an XSP page, you can do (String) request.getSession().getAttribute("foo"); or org.apache.cocoon.environment.Session session = request.getSession(); session.invalidate(); etc. See http://xml.apache.org/cocoon/apidocs/index.html for API. There is also a session logicsheet for XSP, which may be useful in some circumstances: http://xml.apache.org/cocoon/userdocs/xsp/session.html HTH, -Christopher |---------+------------------------------> | | Kavitha Ramesh | | | | | @yahoo.com> | | | | | | 04/07/2003 07:53 AM| | | Please respond to | | | cocoon-users | | | | |---------+------------------------------> >--------------------------------------------------------------------------------------------------------------| | | | To: cocoon-users@xml.apache.org | | cc: | | Subject: Session Management in cocoon | >--------------------------------------------------------------------------------------------------------------| Hi Users, 1)When a user logs in in a loginpage, Can cocoon create jsessionid by itself and append it in the URI?Because I do this manually by a servlet and then wrap around the pipeline,,, 2)How does cocoon manage the session? 3)Pls give me some ideas abt sessions in cocoon,,, Kavitha. --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-users-help@xml.apache.org --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more --0-1167278428-1049722979=:86255 Content-Type: text/html; charset=us-ascii

Thanks a lot!

 Christopher Painter-Wakefield <paint007@mc.duke.edu> wrote:


1) The EncodeURL Transformer will append the jsessionid to each URL, as
necessary (that is, if the browser has cookies turned off). See
http://xml.apache.org/cocoon/userdocs/transformers/encodeurl-transformer.html
for usage. There was a bug in earlier versions of this, that wouldn't
append the jsessionid on the first request, but that may be fixed now.

2) I believe Cocoon doesn't manage sessions, that is handled by the servlet
engine (Tomcat, for most folks). See the docs for your servlet engine.

3) Basically you can work with sessions in Cocoon just like you can in any
Java servlet. For most components, you'll need to get the session from the
request object. E.g., in an XSP page, you can do
(String) request.getSession().getAttribute("foo");
or
org.apache.cocoon.environment.Session session = request.getSession();
session.invalidate();

etc. See http://xml.apache.org/cocoon/apidocs/index.html for API.

There is also a session logicsheet for XSP, which may be useful in some
circumstances:
http://xml.apache.org/cocoon/userdocs/xsp/session.html

HTH,
-Christopher



|---------+------------------------------>
| | Kavitha Ramesh |
| | | | @yahoo.com> |
| | |
| | 04/07/2003 07:53 AM|
| | Please respond to |
| | cocoon-users |
| | |
|---------+------------------------------>
>--------------------------------------------------------------------------------------------------------------|
| |
| To: cocoon-users@xml.apache.org |
| cc: |
| Subject: Session Management in cocoon |
>--------------------------------------------------------------------------------------------------------------|




Hi Users,


1)When a user logs in in a loginpage, Can cocoon create jsessionid by
itself and append it in the URI?Because I do this manually by a servlet
and then wrap around the pipeline,,,


2)How does cocoon manage the session?


3)Pls give me some ideas abt sessions in cocoon,,,


Kavitha.






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



Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more --0-1167278428-1049722979=:86255--