Skip to content
Myr

Better use(Cookie)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 34de3ed · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:lib/express/plugins/session.js+3 added-2 removed
3 unmodified lines
4/**5 * Module dependencies.6 */7 8var utils = require('express/utils')8var utils = require('express/utils'),9 Cookie = require('express/plugins/cookie').Cookie1011// --- Session1213var Session = Class({
143 unmodified lines
157 * @api private158 */159 160 init: function(options) {160 use(require('express/plugins/cookie').Cookie)161 use(Cookie)162 process.mixin(this, options)163 this.store = new (this.dataStore || exports.Store.Memory)(options)164 this.startReaper()165 },
42 unmodified lines