Instantly share code, notes, and snippets.
Hello thank you was looking for a solution about
2 days and very difficult
but now I found
Smart, but I found a bug: if it stores same cookie with different values, the old ones won't be overwritten but loaded as duplicates on request.
@haridaniel you're right, cookies should override matching older cookies according to the specs in RFC 6265 5.3 Storage Model.