cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira>
Subject Re: Do session aware redirects work?
Date Thu, 27 May 2004 14:45:04 GMT
Upayavira wrote:

> This might sound crazy, but I've got some code that, within an action, 
> does:
>  redirector.globalRedirect(true, "my-new-url");
> When I trace it through within Eclipse, I find that in 
> HTTPEnvironment.doRedirect, it finds the correct session. However, 
> when I receive another request, the one coming in as a result of the 
> redirect, I've got a different session ID, and therefore my code can't 
> find crucial objects within the session.
> Any idea what is going on? Do session aware redirects actually work?

Well. They don't work if you're using proxying, and haven't got 
ProxyPassReverse in your Apache config :-(

Because of that, the redirect is coming from a different URL, and thus 
the session cookie is not sent in by the browser.

> Upayavira, who will probably find something completely obvious as soon 
> as he sends this message.

Upayavira, who took a whole morning to sort this one out.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message