New Cookie Module

Cookie schmookie right? It’s just so pat. Nothing could be more boring, that it, until it breaks. Until then we had been successfully using the cookie module hosted on the code.google website.

We were seeing a very obscure problem. With Firefox, in conjunction with the jQuery bindings, while using websockets to transfer data. The FF implemention of WS was getting killed each time a new validation job was submitted.

Looking for a replacement, one that didn’t rely on jQuery, I came across the cookie module written and so-generously shared by Scott Hamper. The code is tight and modern enough. It supports setter injection for testing, AMD, and can be used in node.js.