Re: mod_proxy mod_rewrite and cookies rewriting

Graham Leggett <[email protected]>
Newsgroups gmane.comp.apache.mod-proxy
Message-ID <[email protected]>
Maurizio Marini wrote:

> like many plp here, i'm wondering how can i rewrite cookies in a proxy-reverse & rewrite architecure

Rewriting cookies is quite a tricky thing to do, as there are many ways 
that Apache might "get it wrong" while trying to translate them, which 
may result in a cookie's scope being larger than it should be, or just 
wrong. I'm still giving some thought to all of this though - I'll 
probably add a new directive allowing finer control over cookies and 
their scope.

The easiest way to get over any cookie related problems is to make sure 
that the URL on the backend is exactly the same as the URL on the 
frontend. This way any cookie set on the backend will have the correct 
scope on the frontend. This is the recommended approach in the meantime.

Regards,
Graham
-- 
-----------------------------------------
[email protected]		"There's a moon
					over Bourbon Street
						tonight..."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.