Mantis - Resin
Viewing Issue Advanced Details
5179 minor always 08-16-12 04:13 09-05-12 14:21
kiilerich  
ferg  
normal  
closed 4.0.29  
fixed  
none    
none 4.0.31  
0005179: Setting cookies with maxAge(0) fails.
We've been trying to set a cookie with maxAge(0), path=/ to space (" ")..

However we get this result in the response headers:
Set-Cookie:WSS_ORDER_UUID=" "; Path="/"

Note the " signs around space and path. also note Path is spelled with capital P, and there is no expiration date set.

We've tried with empty cookie "", but no expires header either.

This works in Resin3 where it sets:

Set-Cookie:WSS_ORDER_UUID=; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT

We've worked around the problem by using response.setHeader(..), but this not pretty.

Also reproducable on Resin 4.0.18, others not tested.

Notes
(0006040)
ferg   
09-05-12 14:21   
server/01ec