cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Schrijver" <mark.schrij...@mobillion.nl>
Subject JSession and session timout
Date Mon, 13 Mar 2006 14:47:23 GMT
When I have a session and I have cookies enabled, I need to use the enableUrl transformer to
encode the jsessionid into my url. This all works perfectly.
I have a problem when the session times out hoewever.
When I have a link on my page, which has the jsession encoded into it, and I wait for the
session timeout, something strange happens.
When I click the link, the following appears in the addressbar:
http://localhost/mobile/showPost?postId=136 <http://localhost/mobile/showPost?postId=136&amp;amp;amp;amp;jsessionid=A4DB7C3DA444DDC50D751E2158D7DE86&amp;amp;amp;jsessionid=FF6A9C18EA8AA68A6B4B36E4E91B314E&amp;amp;jsessionid=B9CB0D30704799F7A4326A25BAA791A2&amp;jsessionid=1FBD4859F1EEF875B5EB10410A09D35F>
&amp;amp;amp;amp;jsessionid=A4DB7C3DA444DDC50D751E2158D7DE86&amp;amp;amp;jsessionid=FF6A9C18EA8AA68A6B4B36E4E91B314E&amp;amp;jsessionid=B9CB0D30704799F7A4326A25BAA791A2&amp;jsessionid=1FBD4859F1EEF875B5EB10410A09D35F
 
The problem here is that I start each page by calling an action which inserts the sessionId
into the database. with this URL however, the sessionId is calculated to: A4DB7C3DA444DDC50D751E2158D7DE86&amp;amp;amp;jsessionid=FF6A9C18EA8AA68A6B4B36E4E91B314E&amp;amp;jsessionid=B9CB0D30704799F7A4326A25BAA791A2&amp;jsessionid=1FBD4859F1EEF875B5EB10410A09D35F
 
Does anyone have any idea how to solve this problem?
 
Mark

-----Oorspronkelijk bericht-----
Van: jcmoissinac@gmail.com [mailto:jcmoissinac@gmail.com]Namens Jean-Claude Moissinac
Verzonden: maandag 13 maart 2006 15:15
Aan: users@cocoon.apache.org
CC: antoine.moreau@enst.fr
Onderwerp: File generator and parameters


Hello

I'm working on a site which allows to process some external pages

I call something like:
http://mysite/processing/process1/an/external/url 
and which is matched by a pipeline like this
        <map:match pattern="process1/**/*">
            <map:generate  src="http://{1}/{2}"/>
            <map:transform type="myTransform"/> 
            <map:serialize type="xml" />
        </map:match>

which works fine if the URL has no parameters
but if the called URL has parameters, the generator seems to ignore it.
If the request is 
http://mysite/processing/process1/an/external/url?param=12
I would like that the generator uses
http://an/external/url?param=12
as his src
Is there a solution to do it?

-- 
-- 
Jean-Claude Moissinac
Department of Computer Science and Networks
ENST Paris
FRANCE

E-mail: moissinac@enst.fr
Tel: (+33) 1.45.81.80.88
Fax: (+33) 1.45.81.71.58

http://shadok.enst.fr/jcm 


Mime
View raw message