Sha256: 746df611d5299f56decbcd14b2e398e8d7d69fb7203117cbc42d7f53d5aa2450

Contents?: true

Size: 788 Bytes

Versions: 17

Compression:

Stored size: 788 Bytes

Contents

/*!
 * Connect - session
 * Copyright(c) 2010 Sencha Inc.
 * Copyright(c) 2011 TJ Holowaychuk
 * MIT Licensed
 */

/**
 * Module dependencies.
 */

var expressSession = require('express-session');
var utils = require('../utils');

/**
 * Session:
 *
 *   Setup session store with the given `options`.
 *
 * See [express-session](https://github.com/expressjs/session)
 *
 * @param {Object} options
 * @return {Function}
 * @api public
 */

module.exports = exports = function session(options) {
  var opts = utils.merge({
    resave: true,
    saveUninitialized: true
  }, options);

  return expressSession(opts);
};

exports.Cookie = expressSession.Cookie;
exports.MemoryStore = expressSession.MemoryStore;
exports.Session = expressSession.Session;
exports.Store = expressSession.Store;

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/connect/lib/middleware/session.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/connect/lib/middleware/session.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/connect/lib/middleware/session.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/connect/lib/middleware/session.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/connect/lib/middleware/session.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/connect/lib/middleware/session.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/connect/lib/middleware/session.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/connect/lib/middleware/session.js
hooch-0.0.7 jasmine/node_modules/karma/node_modules/connect/lib/middleware/session.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/connect/lib/middleware/session.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/connect/lib/middleware/session.js
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/connect/lib/middleware/session.js
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/connect/lib/middleware/session.js
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/connect/lib/middleware/session.js
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/connect/lib/middleware/session.js
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/connect/lib/middleware/session.js
entangled-0.0.10 spec/dummy/public/node_modules/karma/node_modules/connect/lib/middleware/session.js