Improve cookie handling
Merge pull request #2 from trecouvr/trecouvr/improve_cookie_handling

Improve cookie handling