Kasper Tidemann - human, developer, businessman, man of the world.
From our hands we give.

Category: express

Express 3.x to 4.0 migration guide

If you’re using Node.js, there’s quite the chance you’re using Express as well. The project has reached the version 4.0 release candidate state, bringing some changes with it – mainly that Connect is no longer a dependency. This means that all Connect functions previously available on the express namespace are no longer available. For a […]

How to clear cookies using express 3.0.0rc4

According to the documentation of express, you need to call res.clearCookie(name, [options]); to clear a cookie. If the cookie is set with a path of '/', a call to res.clearCookie('<cookie name>', { path: '/' }) should clear it. However, I’ve experienced numerous times that this doesn’t work, even when the paths are the same. If […]

Kasper Tidemann