Cookies

RobeeeJay edited this page Aug 23, 2012 · 2 revisions

This module processes submitted cookies and places their values into the request.cookies object.

new fw.Cookies({ });

There are no arguments specific to this module.

Simple Example

var stackFull = new fw.Stack();

stackFull.append(new fw.Cookies());

After the above, for a cookie submitted as part of the headers with a value "dog=cat", then request.cookies.dog == "cat".