On Tue, Aug 14, 2001 at 03:55:42PM -0400, Yanxia Liu wrote:
> Turbine.doGet:
> 1. The request is redirected by having a 'redirected="true"' added to its
> path and resent.
> 2. When the redirected request comes back, 'redirected="true"' is removed
> from its pathinfo and redirected back to the original URL, which is the
> above URL.
> 
> Question: Why is the above redirect necessary?

This mechanism is in place to ensure that session tracking works
correctly. Particularly it allows the container to select URL-based
session tracking if the client browser appears to have cookies disabled,
and it guards against infinite redirects where a containers session
tracking mechanism is broken (it could be argued this latter case is
unlikely these days). It's a fairly common servlet API trick.

The second redirect removes the redirected/true wart from the URL.

As to the rest of your ideas - I guess code them up and submit a patch,
if they're liked they may be included in the core...

Sean

-- 
Sean Legassick
[EMAIL PROTECTED]
                                  homo sum: humani nihil a me alienum puto


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to