Skip to content
Myr

Removed set("session cookie") in favour of use(Session, { 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 2d1c98a · Browse files · 1 file+2 added−1 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:lib/express/plugins/session.js+2 added-1 removed
170 unmodified lines
171 *172 * - dataStore   constructor name of session data store, defaults to Store.Memory173 * - lifetime lifetime of session in milliseconds, defaults to one day174 * - reapInterval, reapEvery interval in milliseconds in which to reap old sessions, defaults to one hour175 * - cookie session specific cookie options passed to Request#cookie()176 * 177 * @param {hash} options178 * @api private179 */
31 unmodified lines
211 if( error ) next(error);212 else {213 // If an invalid session id was passed then the id can change214 if( session.id != sid ) 214 event.request.cookie('sid',session.id, set('session cookie'))215 event.request.cookie('sid', session.id, exports.Session.cookie)216 217 event.request.session= session;218 event.request.session.touch();219 next();
15 unmodified lines