URL rewriting

View: New views
5 Messages — Rating Filter:   Alert me  

URL rewriting

by Kamal-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
We are having troubles with session cookies and Cocoon Forms in Cocoon
2.1.x.  As such, we need URL rewriting to handle state.

Is there some action/serializer/transformer that converts all links to
specify the session ID if they originate from the same URL?

Thanks.

--
Kamal Bhatt


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: URL rewriting

by Luca Morandini-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 04/11/09 03:07, Kamal Bhatt wrote:
> Hi,
> We are having troubles with session cookies and Cocoon Forms in Cocoon
> 2.1.x. As such, we need URL rewriting to handle state.
>
> Is there some action/serializer/transformer that converts all links to
> specify the session ID if they originate from the same URL?

The LinkRewriter transformer seems a good start (it should work for 2.1 as well):
http://cocoon.apache.org/2.2/blocks/linkrewriter/1.0/1354_1_1.html

--------------------
    Luca Morandini
www.lucamorandini.it
--------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: URL rewriting

by David Legg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Kamal,

Luca Morandini wrote:
> The LinkRewriter transformer seems a good start (it should work for
> 2.1 as well):
> http://cocoon.apache.org/2.2/blocks/linkrewriter/1.0/1354_1_1.html

Don't be put off by apparent lack of content in the link Luca
mentioned.... if you click on the edit link you eventually get to the
not so public page which I updated a while ago but haven't published yet
(I really must get around to it sometime!) which actually contains real
substance... [1]

Regards,
David Legg

[1]
http://cocoon.zones.apache.org/daisy/cdocs/g1/g2/g9/g1/Transformer/1102.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: URL rewriting

by Kamal-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks.  Is there an input module that specifies the session ID?

> Hi Kamal,
>
> Luca Morandini wrote:
>> The LinkRewriter transformer seems a good start (it should work for
>> 2.1 as well):
>> http://cocoon.apache.org/2.2/blocks/linkrewriter/1.0/1354_1_1.html
>
> Don't be put off by apparent lack of content in the link Luca
> mentioned.... if you click on the edit link you eventually get to the
> not so public page which I updated a while ago but haven't published
> yet (I really must get around to it sometime!) which actually contains
> real substance... [1]
>
> Regards,
> David Legg
>
> [1]
> http://cocoon.zones.apache.org/daisy/cdocs/g1/g2/g9/g1/Transformer/1102.html 
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>


--
Kamal Bhatt


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: URL rewriting

by Alexander Daniel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 06.11.2009, at 01:41, Kamal Bhatt wrote:

> Thanks.  Is there an input module that specifies the session ID?

If the session ID is in a cookie you can use the cookie input module  
[1].

[2] describes that the RequestModule supports requestedSessionId,  
requestedSessionIdFromCookie, requestedSessionIdFromURL and  
requestedSessionIdValid.

Alex

[1] http://cocoon.apache.org/2.1/userdocs/concepts/modules-ref.html
[2] http://wiki.apache.org/cocoon/InputModules

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...