Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.