Parsing cookies

Hi. This is a change in the way cookies are parsed. However I don't know how they worked before. I have used urlparse here and it works for me. Before it gave error as in issue 66.

Best regards,
zefciu