Skip to content
Myr

Always httpOnly 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 6b13fc9 · 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
177 unmodified lines
178 * @api private179 */180 181 init: function(options) {182 this.cookie = { httpOnly: true }182 this.cookie = {}183 this.merge(options || {})184 this.cookie.httpOnly = true185 this.store = new (this.dataStore || exports.Store.Memory)(options)186 this.startReaper()187 },188
45 unmodified lines