[cse491] Set-Cookie with expires='some time in the past'

C. Titus Brown ctb at msu.edu
Mon Nov 23 13:14:30 PST 2009


On Mon, Nov 23, 2009 at 04:07:27PM -0500, Joe Amenta wrote:
> I rolled my own cookie-deleting function in cookie_util, and it now sends
> this header:
> 
> Set-Cookie: session=; expires=Wed, 31-Dec-1969 19:00:01 GMT
> 
> Why is Firefox still sending the cookie:
> 
> Cookie: session=
> 
> in later requests?

Hi Joe,

what happens if you do:

Set-Cookie: session=foo; expires=...

? Does it return session=foo or does it return session=?

cheers,
--titus
-- 
C. Titus Brown, ctb at msu.edu



More information about the cse491-fall-2009 mailing list