expressjs / cookie-parser

Parse HTTP request cookies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reading duplicated cookies

a-x- opened this issue · comments

my bro sends weird cookies (after deleting and installing cookies again):

user_id=; session_id=; session_id=XXXXXXX; user_id=6

cookie-parser parse them as a ''

but expected reading a second value of each cookie

Hi @a-x- , can you provide some more information? For example, how exactly are you "deleting" cookies? If you are just setting them to an empty value, a cookie having an empty value is a perfectly valid cookie. Better understanding how to reproduce your issue will help a lot :)

transferred to jshttp/cookie#60

the problem resolved???

nope,
i'm too lazy to make pr into jshttp/cookie

but fix is not too hard, read convarsation in following issue, please.

ok, i have changed to use express-cookies