You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jean-Christophe Kermagoret <jc...@bluexml.org> on 2005/11/15 17:11:06 UTC
Is the cocoon portal redirection mandatory ?
Hello,
When you try to connect to the portal when not connected :
* the server sends you a new URL to connect to through a 302 response
with a new location that contains a cookie
* you then make this connection with this cookie and you are connected
For me, we made one trip (go and back) too much.
Is there a way to oblige tomcat or cocoon to use jsession id without
cookies ? I can simulate this by prohibiting my browser to accept
cookies, but I have still this process of portal redirection.
Any ideas to reduce this overhead ? It it possible ? Is it a tomcat
problem or cocoon portal one ? a authentication fw ?
Thanks for any help
--
BlueXML
Jean-Christophe Kermagoret
Directeur associé
jck@bluexml.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Is the cocoon portal redirection mandatory ?
Posted by Jean-Christophe Kermagoret <jc...@bluexml.org>.
Carsten Ziegeler a écrit :
> Jean-Christophe Kermagoret wrote:
>
>>I think I solve partly my problem.
>>
>>To tell Tomcat not to use cookies, I just put a cookies attribute to
>>false in my context definition :
>>
>><Context docBase="/home/jck/Project/repons/core/web" path="/repons"
>>cookies="false">
>>
>>I still have my portal redirection problem
>>
>>Any ideas ?
>
>
> It's hard to tell without seeing your sitemap :) Now, I guess, you have
> a <redirect-to url="SOMETHING"/> somewhere in the case if the user is
> not logged in. Try replacing it with <redirect-to url="cocoon:/SOMETHING"/>.
>
> HTH
> Carsten
>
Yes, I had a dream tonight that told me exactly that :-)
But I realized too that I will only win the http overhead : all the
actions are necessary to connect.
So I come with another question in another thread :-)
--
BlueXML
Jean-Christophe Kermagoret
Directeur associé
jck@bluexml.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Is the cocoon portal redirection mandatory ?
Posted by Jean-Christophe Kermagoret <jc...@babelobjects.com>.
Carsten Ziegeler a écrit :
> Jean-Christophe Kermagoret wrote:
>
>>I think I solve partly my problem.
>>
>>To tell Tomcat not to use cookies, I just put a cookies attribute to
>>false in my context definition :
>>
>><Context docBase="/home/jck/Project/repons/core/web" path="/repons"
>>cookies="false">
>>
>>I still have my portal redirection problem
>>
>>Any ideas ?
>
>
> It's hard to tell without seeing your sitemap :) Now, I guess, you have
> a <redirect-to url="SOMETHING"/> somewhere in the case if the user is
> not logged in. Try replacing it with <redirect-to url="cocoon:/SOMETHING"/>.
>
> HTH
> Carsten
>
Yes, I had a dream tonight that told me exactly that :-)
But I realized too that I will only win the http overhead : all the
actions are necessary to connect.
So I come with another question in another thread :-)
--
Jean-Christophe Kermagoret
jck@BabelObjects.Com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Is the cocoon portal redirection mandatory ?
Posted by Carsten Ziegeler <cz...@apache.org>.
Jean-Christophe Kermagoret wrote:
>
> I think I solve partly my problem.
>
> To tell Tomcat not to use cookies, I just put a cookies attribute to
> false in my context definition :
>
> <Context docBase="/home/jck/Project/repons/core/web" path="/repons"
> cookies="false">
>
> I still have my portal redirection problem
>
> Any ideas ?
It's hard to tell without seeing your sitemap :) Now, I guess, you have
a <redirect-to url="SOMETHING"/> somewhere in the case if the user is
not logged in. Try replacing it with <redirect-to url="cocoon:/SOMETHING"/>.
HTH
Carsten
--
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Is the cocoon portal redirection mandatory ?
Posted by Jean-Christophe Kermagoret <jc...@bluexml.org>.
Jean-Christophe Kermagoret a écrit :
> The first time you go to the cocoon portal, when you are not connected,
> you are redirected to the portal with a sessionid. This way, the server
> sets up a cookie to your browser.
>
> I want to suppress this redirection. Is it possible ?
>
> Jean-Christophe
>
> Jean-Baptiste Quenot a écrit :
>
>> * Jean-Christophe Kermagoret:
>>
>>
>>> When you try to connect to the portal when not connected : * the
>>> server sends you a new URL to connect to through a 302 response
>>> with a new location that contains a cookie
>>
>>
>>
>> Just to be sure, redirection from where to where?
>
>
>
I think I solve partly my problem.
To tell Tomcat not to use cookies, I just put a cookies attribute to
false in my context definition :
<Context docBase="/home/jck/Project/repons/core/web" path="/repons"
cookies="false">
I still have my portal redirection problem
Any ideas ?
--
BlueXML
Jean-Christophe Kermagoret
Directeur associé
jck@bluexml.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Is the cocoon portal redirection mandatory ?
Posted by Jean-Christophe Kermagoret <jc...@bluexml.org>.
The first time you go to the cocoon portal, when you are not connected,
you are redirected to the portal with a sessionid. This way, the server
sets up a cookie to your browser.
I want to suppress this redirection. Is it possible ?
Jean-Christophe
Jean-Baptiste Quenot a écrit :
> * Jean-Christophe Kermagoret:
>
>
>>When you try to connect to the portal when not connected : * the
>>server sends you a new URL to connect to through a 302 response
>>with a new location that contains a cookie
>
>
> Just to be sure, redirection from where to where?
--
BlueXML
Jean-Christophe Kermagoret
Directeur associé
jck@bluexml.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Is the cocoon portal redirection mandatory ?
Posted by Jean-Baptiste Quenot <jb...@anyware-tech.com>.
* Jean-Christophe Kermagoret:
> When you try to connect to the portal when not connected : * the
> server sends you a new URL to connect to through a 302 response
> with a new location that contains a cookie
Just to be sure, redirection from where to where?
--
Jean-Baptiste Quenot
Systèmes d'Information
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 52 90
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org