set-cookie

php - track down premature headers leak

I'm using set_cookie() on a site. After adding some functionality, I'm getting Warning: Cannot modify header information - headers already sent by... error. The line number it references as to where the headers initiated from is the very line where set_cookie() is! And I checked, it's not being called twice. How can I track down these p...

How to get correct Set-Cookie headers for NSHTTPURLResponse?

I want to use the following code to login to a website which returns its cookie information in the following manner: Set-Cookie: 19231234 Set-Cookie: u2am1342340 Set-Cookie: owwjera I'm using the following code to log in to the site, but the print statement at the end doesn't output anything about "set-cookie". On Snow leopard, the li...

How can I format date for "expires" value in manual Set-Cookie header in VBScript?

I'm adding a header for Set-Cookie manually, in VBScript, so that I can include HttpOnly. When I make a Set-Cookie header that includes this expires value: expires=5/13/2010 9:57:35 AM; Internet Explorer 8 does not set the cookie (FireFox does). This is what expires date formatting look like when set by Response.Cookies("cookieName"...

location of firefox source code that parses Set-Cookie header?

Can someone please point me to the Firefox source code where Set-Cookie header is parsed? I want to understand the exact behavior. Read further if you want to know why? For various constraint in my application, I need to pass multiple cookies inside single Set-Cookie header. RFC-2109 clearly mentions, "Set-Cookie response header com...