[Catalyst] Returning to referer - which action to take?

Tomas Doran bobtfish at bobtfish.net
Mon Sep 27 15:18:37 GMT 2010


On 26 Sep 2010, at 20:38, Ekki Plicht (DF4OR) wrote:
> Serving the pages in different languages works fine with C::P::I18N,  
> but I
> can't figure out how to return the visitor to the refering page.  
> Simply
> redirecting to the referer does not work, because a prepared cookie  
> isn't
> preserved over a redirect (isn't it?).

Yes, it is.

If you send a cookie as part of a 302 redirect, then that cookie will  
(if applicable) be re-presented on the GET of the resource that the  
user was redirected to.

Cheers
t0m




More information about the Catalyst mailing list