Setting P3P header before Set-Cookie

I think this might be your problem here (from actionpack-1.13.3/lib/action_controller/cookies.rb):

class CookieJar < Hash

Hashes are unordered collections. Maybe you can find/write a ordered hash and make CookieJar extend that instead.

Then again, hash responds to "sort" so maybe the cookies are being sorted before they're written into the header. That would sort alphabetically... and thwart your ordering. I doubt that though... unnecessary work.

Well, you can use a firefox plugin (tamper data, live http headers) to examine the response headers and see how they appear in there. You might also try to figure out where the actual writing of headers is done... That or hope that someone who knows what the heck they're talking about notices this post. :slight_smile:


Mike Lee wrote:

dear sender,
i�m out of the office until may 29th.
your email will not be forwarded.
for urgent stuff please contact
kind regards,