You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Chris Wilder-Smith <cw...@cast.org> on 2004/01/14 22:20:51 UTC

Authentication Framework and session timeout

Hi,

We're using the cocoon authentication framework for a project.  When you
log in directly everything works fine.  I expected that after a server
restart or a session timeout that you'd get bumped to the login page
automatically if you hit a 'next page' or typed a URL into the middle of
the site.  

It looks like this is what is starting to happen, but then I get hit
with a 'Redirection limit for this URL exceeded' message.  

If I follow it manually, it looks like there are about three
redirections that would happen when you hit the auth-protect action.  

Does anyone have an explanation for what is happening - and better yet,
a solution (or at least some clues)

Thanks,

Chris

-- 
Chris Wilder-Smith
Principal Technical Architect

mailto:cws@cast.org             http://www.cast.org
CAST: 781-245-2212              Home Office: 508-650-8885
AIM:  ChrisWSAtWork             ICQ: 95325318


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


Re: Authentication Framework and session timeout

Posted by Joerg Heinicke <jo...@gmx.de>.
On 15.01.2004 16:58, Chris Wilder-Smith wrote:
> Joerg,
> 
> I;ve got it working now. It turns out that the redirections just needed
> to have cocoon:// in front of them so that they wouldn't appear to
> belong in the protected sitemap.  Thanks for your help diagnosing
> things.

Just FYI: With cocoon:// you do an internal redirect to the root sitemap 
why without it you do a client side redirect.

Joerg

> On Wed, 2004-01-14 at 19:02, Joerg Heinicke wrote:
> 
>>'Redirection limit for this URL exceeded' means that you have a cycle in 
>>your sitemap. This can happen if you do a redirect to a page that is hit 
>>by the same matcher again and is redirected and redirected and 
>>redirected and ...
>>If you have a look into the sitemap you should be able to see which 
>>matcher it is. You maybe have to lower the log level.
>>
>>Joerg
>>
>>On 14.01.2004 22:20, Chris Wilder-Smith wrote:
>>
>>
>>>Hi,
>>>
>>>We're using the cocoon authentication framework for a project.  When you
>>>log in directly everything works fine.  I expected that after a server
>>>restart or a session timeout that you'd get bumped to the login page
>>>automatically if you hit a 'next page' or typed a URL into the middle of
>>>the site.  
>>>
>>>It looks like this is what is starting to happen, but then I get hit
>>>with a 'Redirection limit for this URL exceeded' message.  
>>>
>>>If I follow it manually, it looks like there are about three
>>>redirections that would happen when you hit the auth-protect action.  
>>>
>>>Does anyone have an explanation for what is happening - and better yet,
>>>a solution (or at least some clues)
>>>
>>>Thanks,
>>>
>>>Chris


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


Re: Authentication Framework and session timeout

Posted by Chris Wilder-Smith <ch...@wilder-smith.org>.
Joerg,

I;ve got it working now. It turns out that the redirections just needed
to have cocoon:// in front of them so that they wouldn't appear to
belong in the protected sitemap.  Thanks for your help diagnosing
things.


Chris


On Wed, 2004-01-14 at 19:02, Joerg Heinicke wrote:
> 'Redirection limit for this URL exceeded' means that you have a cycle in 
> your sitemap. This can happen if you do a redirect to a page that is hit 
> by the same matcher again and is redirected and redirected and 
> redirected and ...
> If you have a look into the sitemap you should be able to see which 
> matcher it is. You maybe have to lower the log level.
> 
> Joerg
> 
> On 14.01.2004 22:20, Chris Wilder-Smith wrote:
> 
> > Hi,
> > 
> > We're using the cocoon authentication framework for a project.  When you
> > log in directly everything works fine.  I expected that after a server
> > restart or a session timeout that you'd get bumped to the login page
> > automatically if you hit a 'next page' or typed a URL into the middle of
> > the site.  
> > 
> > It looks like this is what is starting to happen, but then I get hit
> > with a 'Redirection limit for this URL exceeded' message.  
> > 
> > If I follow it manually, it looks like there are about three
> > redirections that would happen when you hit the auth-protect action.  
> > 
> > Does anyone have an explanation for what is happening - and better yet,
> > a solution (or at least some clues)
> > 
> > Thanks,
> > 
> > Chris
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 


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


Re: Authentication Framework and session timeout

Posted by Joerg Heinicke <jo...@gmx.de>.
'Redirection limit for this URL exceeded' means that you have a cycle in 
your sitemap. This can happen if you do a redirect to a page that is hit 
by the same matcher again and is redirected and redirected and 
redirected and ...
If you have a look into the sitemap you should be able to see which 
matcher it is. You maybe have to lower the log level.

Joerg

On 14.01.2004 22:20, Chris Wilder-Smith wrote:

> Hi,
> 
> We're using the cocoon authentication framework for a project.  When you
> log in directly everything works fine.  I expected that after a server
> restart or a session timeout that you'd get bumped to the login page
> automatically if you hit a 'next page' or typed a URL into the middle of
> the site.  
> 
> It looks like this is what is starting to happen, but then I get hit
> with a 'Redirection limit for this URL exceeded' message.  
> 
> If I follow it manually, it looks like there are about three
> redirections that would happen when you hit the auth-protect action.  
> 
> Does anyone have an explanation for what is happening - and better yet,
> a solution (or at least some clues)
> 
> Thanks,
> 
> Chris


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