You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by David Taveras <d3...@gmail.com> on 2009/09/03 06:42:34 UTC

[users@httpd] mod_rewrite & cookies & apache 1.3.. known problem?

Hello,

I have a site that uses mod_rewrite for URLs... id like to include a
tracking cookie for users that are entering via URLs made by mod_rewrite.
The problem is that the cookie isnt getting passed through the mod_rewrite
URL.

Ive been told (and tested) that Apache2 mod_rewrite does indeed manage this
situation.

My question is:

Can anybody else confirm that this issue exists with Apache 1.3 and
mod_rewrite.. and why?


Thank you

Daniel

Re: [users@httpd] mod_rewrite & cookies & apache 1.3.. known problem?

Posted by Krist van Besien <kr...@gmail.com>.
On Thu, Sep 3, 2009 at 6:42 AM, David Taveras<d3...@gmail.com> wrote:
> Hello,
>
> I have a site that uses mod_rewrite for URLs... id like to include a
> tracking cookie for users that are entering via URLs made by mod_rewrite.
> The problem is that the cookie isnt getting passed through the mod_rewrite
> URL.

Cookies are not part of the URL. So mod_rewrite does not manipulate
them. If a cookie is part of a request, it will normally still be part
of the request after mod_rewrite has manipulated the URL.

> Ive been told (and tested) that Apache2 mod_rewrite does indeed manage this
> situation.

You can use mod_rewrite to do all kinds of nifty things. You have to
realise however that mod_rewrite's purpose is to manimpulate URLs. It
can set cookies as a sideeffect.
If your cookie "does not get through" it is most likely not being sent
to the server by the browser in the first place. Check this first.

> Can anybody else confirm that this issue exists with Apache 1.3 and
> mod_rewrite.. and why?

You have formaluted your problem in a way that it is not possible for
anyone to confirm (or deny) that this is an issue.

Krist


-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org