You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
idoctnef 52b63ee33a nodejs with express server, leapmotion for movement control, and threejs for 3d render 8 years ago
..
test nodejs with express server, leapmotion for movement control, and threejs for 3d render 8 years ago
.npmignore nodejs with express server, leapmotion for movement control, and threejs for 3d render 8 years ago
.travis.yml nodejs with express server, leapmotion for movement control, and threejs for 3d render 8 years ago
LICENSE nodejs with express server, leapmotion for movement control, and threejs for 3d render 8 years ago
README.md nodejs with express server, leapmotion for movement control, and threejs for 3d render 8 years ago
index.js nodejs with express server, leapmotion for movement control, and threejs for 3d render 8 years ago
package.json nodejs with express server, leapmotion for movement control, and threejs for 3d render 8 years ago

README.md

cookie Build Status

cookie is a basic cookie parser and serializer. It doesn't make assumptions about how you are going to deal with your cookies. It basically just provides a way to read and write the HTTP cookie headers.

See RFC6265 for details about the http header for cookies.

how?

npm install cookie
var cookie = require('cookie');

var hdr = cookie.serialize('foo', 'bar');
// hdr = 'foo=bar';

var cookies = cookie.parse('foo=bar; cat=meow; dog=ruff');
// cookies = { foo: 'bar', cat: 'meow', dog: 'ruff' };

more

The serialize function takes a third parameter, an object, to set cookie options. See the RFC for valid values.

path

cookie path

expires

absolute expiration date for the cookie (Date object)

maxAge

relative max age of the cookie from when the client receives it (seconds)

domain

domain for the cookie

secure

true or false

httpOnly

true or false