This blog post gives an introduction to Cookie based Authentication and Implementation using Hapi.js, which is a lightweight Node.js framework.