Return-Path: Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 43798 invoked by uid 500); 26 Aug 2003 08:34:36 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 43503 invoked from network); 26 Aug 2003 08:34:29 -0000 Received: from unknown (HELO mail.messagingengine.com) (66.111.4.25) by daedalus.apache.org with SMTP; 26 Aug 2003 08:34:29 -0000 Received: from mail.messagingengine.com (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id B62E7139BAD for ; Tue, 26 Aug 2003 04:34:17 -0400 (EDT) Received: from 10.202.2.150 ([10.202.2.150] helo=mail.messagingengine.com) by messagingengine.com with SMTP; Tue, 26 Aug 2003 04:34:17 -0400 X-Epoch: 1061886857 X-Sasl-enc: m9t0Qc02F0Qtcj+8HEbIZg Received: from upaya.co.uk (unknown [213.48.13.34]) by www.fastmail.fm (Postfix) with ESMTP id 4C9111399F7 for ; Tue, 26 Aug 2003 04:34:17 -0400 (EDT) Message-ID: <3F4B136C.6020701@upaya.co.uk> Date: Tue, 26 Aug 2003 08:59:40 +0100 From: Upayavira User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: URLs being encoded WITH cookies enabled References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Sonny, Looking at the code of the EncodeURLTransformer, I can see that it only checks whether the URL has been rewritten already (i.e. whether it includes the session ID in the URL already). It does not check whether cookies are in use or not. It just uses the encodeURL() method of the servlet container. Therefore, this cookie checking must be a feature of the servlet container. I'd check whether you need to configure how your container (Tomcat? Jetty?) deals with URL rewriting. Regards, Upayavira Sonny Sukumar wrote: > > Good question, Joerg. I was told by 1 or 2 other people on this list > that the EncodeURLTransformer won't rewrite the links with the session > ID if cookies are enabled. Thus, they said, I could use > at the end of all of my pipelines > with impunity. It will work when it needs to work, and do nothing > when cookies are enabled. > > So I tried it, and now I notice links are being rewritten even with > cookies enabled, both for Mozilla Firebird and for IE (IE is the most > important for us by far). > > Anyhow, 2 other reasons I'd prefer URL/link rewriting not to occur > when cookies are enabled: > 1.) It takes up precious time to parse a document and rewrite links. > 2.) If someone closes the browser, the session is gone, whereas a > cookie still remains even after closing the browser and can be used to > re-establish the same session, provided the session is still valid on > the server. > > I might easily have some misunderstandings here, which is why I've > tried to explain my current understanding. Please point out any > points on which I have erred. > > Sonny > >> From: Joerg Heinicke >> >> I wonder why you don't abstain from cookies completely? If you use >> URL encoding for some users why not for all? We disregard cookies in >> our company completely because can potentially have switched them off. >> >> Joerg >> >> Sonny Sukumar wrote: >> >>> >>> Hi guys, >>> >>> I sent the below message a few days ago but didn't hear from >>> anyone. I'm not sure why the links are being rewritten, and I've >>> verified that it happens with IE as well (again, with cookies enabled). >>> >>>> >>>> I'm using the EncodeURLTransformer in all of my pipelines just >>>> before serializing the output, but from what I read I thought it is >>>> only supposed to encode URLs if cookies are disabled in the browser. >>>> >>>> I've confirmed that cookies are enabled for my browser (Mozilla >>>> Firebird v0.6), but the URLs keep getting rewritten with a >>>> jsessionid parameter. >>>> >>>> What could be wrong? >>> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org