Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have the following cookie set by a product:

Set-Cookie: SSOCookie=T7ngsCmzC2FEq5p2a7o%3D; path=/; domain=.demo.com;

We would like to use Apache to remove the trailing ; which doesn't match the Cookie specification. Can we use mod_rewrite? How?

We are using Apache/2.0.47.

share|improve this question

As you are referring to a Set-Cookie header, this must be in reference to a response being sent by the product to which you refer.

Assuming you cannot fix the product nor can the vendor, you will need to modify the response headers as required. You can't achieve this with mod_rewrite; it is for manipulating request URLs only.

mod_headers is described as as being for the "[c]ustomization of HTTP request and response headers". Examine the documentation for the 'edit' action.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.