in reply to cookie problem

You may want to look at this as well, but i believe Matt is completely correct. And no - the order of lines in the HTTP header (as pertains to cookies) is not important, however new-line characters inside the cookie may be - for many browsers.

*G*