{"_id":"connect-session-mongo","_rev":"23-ad8f7e3b783cb2a940f8bb2739ccbcca","name":"connect-session-mongo","description":"MongoDB Session Store for Connect Middleware","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.1":{"name":"connect-session-mongo","version":"0.0.1","description":"MongoDB Session Store for Connect Middleware","author":{"name":"Bart Teeuwisse","email":"bart@zazengo.com"},"contributors":[{"name":"Dav Glass","email":"davglass@gmail.com"}],"bugs":{"web":"http://github.com/zazengo/connect-session-mongo/issues"},"os":["darwin","linux"],"engines":{"node":">=0.2.0"},"directories":{"lib":"lib"},"main":"./lib/connect-session-mongo","dependencies":{"connect":">=0.2.4","mongodb":">=0.7.9"},"licenses":[{"type":"BSD","url":"http://github.com/zazengo/connect-session-mongo/blob/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/zazengo/connect-session-mongo.git"},"_id":"connect-session-mongo@0.0.1","_nodeSupported":true,"_npmVersion":"0.2.7-3","_nodeVersion":"v0.2.4","dist":{"tarball":"https://registry.npmjs.org/connect-session-mongo/-/connect-session-mongo-0.0.1.tgz","shasum":"18ae108bb54afb976473236d010c81c012f8d2d4","integrity":"sha512-sCOdEz7yp/yiq3mgy9e7mt/b+l/ZGcn1H9sYSCvI9mSyCZTAVFOObXjLHFSxLTBNV83r1Ld4e0bAD93oCpcbIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4YKr4O89Nx5oTaVHhor1PkAPjrjCyK50f4cb7n+acjAIhAKgswEuppCvz0UEZ1Ro/IeTbbwk0StW+Es3C6kzJ4zqA"}]}},"0.0.2":{"name":"connect-session-mongo","version":"0.0.2","description":"MongoDB Session Store for Connect Middleware","author":{"name":"Bart Teeuwisse","email":"bart@zazengo.com"},"contributors":[{"name":"Dav Glass","email":"davglass@gmail.com"}],"bugs":{"web":"http://github.com/zazengo/connect-session-mongo/issues"},"os":["darwin","linux"],"engines":{"node":">=0.2.0"},"directories":{"lib":"lib"},"main":"./lib/connect-session-mongo","dependencies":{"connect":">=0.2.4","mongodb":">=0.7.9"},"licenses":[{"type":"BSD","url":"http://github.com/zazengo/connect-session-mongo/blob/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/zazengo/connect-session-mongo.git"},"_id":"connect-session-mongo@0.0.2","_nodeSupported":true,"_npmVersion":"0.2.7-3","_nodeVersion":"v0.2.4","dist":{"tarball":"https://registry.npmjs.org/connect-session-mongo/-/connect-session-mongo-0.0.2.tgz","shasum":"cc0ba2cdbfaa4eb149f92549162584e3d810afce","integrity":"sha512-PnPjDsqonJaHzZRDkkXKXFmgBaWJE49ZOE574ZXnR4Hc3/A7HDRHH/ca5MLftyWPszjsFVNUw5ViegUEOp+yVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcJdLDPXTLOeV3QNMUW79I1OI1qNUfNtXuYJ2Bxc2r9QIgLfs6cgVWp7Xo4mgowJXklfb6GO33VcM4dCZDk4aJfdc="}]}},"0.0.3":{"name":"connect-session-mongo","version":"0.0.3","description":"MongoDB Session Store for Connect Middleware","author":{"name":"Bart Teeuwisse","email":"bart@zazengo.com"},"contributors":[{"name":"Dav Glass","email":"davglass@gmail.com"}],"bugs":{"web":"http://github.com/zazengo/connect-session-mongo/issues"},"os":["darwin","linux"],"engines":{"node":">=0.2.0"},"directories":{"lib":"lib"},"main":"./lib/connect-session-mongo","dependencies":{"connect":">=0.2.4","mongodb":">=0.8.0"},"licenses":[{"type":"BSD","url":"http://github.com/zazengo/connect-session-mongo/blob/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/zazengo/connect-session-mongo.git"},"dist":{"tarball":"https://registry.npmjs.org/connect-session-mongo/-/connect-session-mongo-0.0.3.tgz","shasum":"df34ef4847e949637b36013955a3b70b0cadf222","integrity":"sha512-QRfxgTc6GLOfqhgAsVxfF2E3rfVMw7vZ/YuV7abf9T3D9p6Gpd10L+w0aawBmRG8WNAL4Zf7kZG8vNM1Dg/D4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHSz/Ee0B7nnF/5n4x+JgLdKpHaK3BxL7Xa5lfBFbWBwAiEApNjOpoNJX5bL2gt+nH1ffPtJFyOsQxxdf0XIUVLsRh4="}]}},"0.0.4":{"name":"connect-session-mongo","version":"0.0.4","description":"MongoDB Session Store for Connect Middleware","author":{"name":"Bart Teeuwisse","email":"bart@thecodemill.biz"},"contributors":[{"name":"Dav Glass","email":"davglass@gmail.com"}],"bugs":{"url":"http://github.com/bartt/connect-session-mongo/issues"},"os":["darwin","linux"],"engines":{"node":">=0.2.0"},"directories":{"lib":"lib"},"main":"./lib/connect-session-mongo","dependencies":{"connect":">=0.2.4","mongodb":">=0.8.0"},"licenses":[{"type":"BSD","url":"http://github.com/bartt/connect-session-mongo/blob/master/LICENSE"}],"repository":{"type":"git","url":"http://github.com/bartt/connect-session-mongo.git"},"_id":"connect-session-mongo@0.0.4","_nodeSupported":true,"_npmVersion":"0.2.10","_nodeVersion":"v0.4.9","dist":{"shasum":"7f448299110f495e20615bc834679f6c70c4a632","tarball":"https://registry.npmjs.org/connect-session-mongo/-/connect-session-mongo-0.0.4.tgz","integrity":"sha512-DX5kGh6yvv72+8Mldw7lxB9yp234YEbJKR8bFG8BK8vC2qRo7hD5r0iKSSLMgucH9VzkwizrnkTTZU8JQ4u0Vg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt8kNuik1/K4w1zdVdkocXIe030BsA+i+V7EvHz6ykXgIhAJa8Sfjp9SpiwKBbgOquvJCbxbH5U6MLMaxqOx9oqLia"}]},"maintainers":[{"name":"bartt","email":"bart@zazengo.com"}]},"0.0.5":{"name":"connect-session-mongo","version":"0.0.5","description":"MongoDB Session Store for Connect Middleware","author":{"name":"Bart Teeuwisse","email":"bart@thecodemill.biz"},"contributors":[{"name":"Dav Glass","email":"davglass@gmail.com"},{"name":"Tyler Johnson","email":"tejohnso@rogers.com"},{"name":"Brandon Ramirez","email":"brandon.s.ramirez@gmail.com"}],"bugs":{"url":"https://github.com/brandonramirez/connect-session-mongo/issues"},"os":["darwin","linux"],"engines":{"node":">=0.2.0"},"directories":{"lib":"lib"},"main":"./lib/connect-session-mongo","dependencies":{"connect":">=0.2.4","mongodb":">=0.8.0"},"licenses":[{"type":"BSD","url":"https://github.com/brandonramirez/connect-session-mongo/blob/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/brandonramirez/connect-session-mongo.git"},"readme":"# MongoDB Session Storage for Connect Middleware\n\nThis module is an addon for [Connect Middleware](https://github.com/senchalabs/connect) that adds a new [Session Storage device](https://github.com/senchalabs/connect/blob/master/docs/session.md).\n\n\n## Install\n\n    npm install connect-session-mongo\n\n## Usage\n\nThe standard usage, is to just pass an instantiated `MongoStore` instance to the session plugin.\n\n    var connect = require('connect'),\n        MongoStore = require('connect-session-mongo');\n\n    var app = connect.createServer();\n\n    app.configure(function(){\n        app.use(connect.cookieDecoder());\n        app.use(connect.session({ store: new MongoStore() }));\n        app.use(app.router);\n    });\n\nYou can also pass several options to the constructor to tweak your session store:\n\n* db - The name of the db to use, defaults to: `connect-sessions`\n* ip - The IP address of the server to connect to, defaults to: `127.0.0.1`\n* port - The Port to connect to, defaults to: `27017`\n* collection - The collection to save its data to, defaults to: `sessions`\n* server - A custom mongo Server instance (this overides db, ip &amp; port)\n* url - A url to use for Db.connect style database connections (this overrides db, ip, port &amp; server)\n\nAn optional callback function(err, connectedDb) can also be passed to the constructor after the options.\n\n<pre><code>var CustomServer = new Server(123.456.789.1, 12345, { auto_reconnect: true }, {});\napp.use(connect.session({ store: new MongoStore({ server: CustomServer }) }));</code></pre>\n\n<pre><code>app.use(connect.session({url: process.env.MONGO_URL}, function(err,db) {if (err) {throw err;}}));</code></pre>\n\n## License\n\nLicensed the [BSD license](https://github.com/bartt/connect-session-mongo/blob/master/LICENSE).\n\n### Based on these classes\n\n* [Sencha Connect Memory Store](https://github.com/senchalabs/connect/tree/master/lib/connect/middleware/session/memory.js)\n* [ciaranj's express-session-mongodb](https://github.com/ciaranj/express-session-mongodb)\n* [davglass's express-session-mongodb](https://github.com/davglass/express-session-mongodb)\n","_id":"connect-session-mongo@0.0.5","dist":{"shasum":"c9c634e6c9f66c71a15fc2b6837ab5f13d7cc546","tarball":"https://registry.npmjs.org/connect-session-mongo/-/connect-session-mongo-0.0.5.tgz","integrity":"sha512-4URZE7ewErKLc69rcYnQX7bxIoLDIHVzRm+HBvNVvrVyv5ZohlL43FKmzKSAppz1VrBXFA8l5O3NI6NvSIYYzQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFVQDOYOz2/q/KkK5IwRhbWP3LOeGo8MDT8wGhir2Py+AiArM6aBuYSdvIA2Wd81rlMIJ7QriZUjKnTOqMR0LFIOug=="}]},"_npmVersion":"1.1.63","_npmUser":{"name":"brandonramirez","email":"brandon.s.ramirez@gmail.com"},"maintainers":[{"name":"bartt","email":"bart@zazengo.com"},{"name":"brandonramirez","email":"brandon.s.ramirez@gmail.com"}]},"0.0.6":{"name":"connect-session-mongo","version":"0.0.6","description":"MongoDB Session Store for Connect Middleware","author":{"name":"Bart Teeuwisse","email":"bart@thecodemill.biz"},"contributors":[{"name":"Dav Glass","email":"davglass@gmail.com"},{"name":"Tyler Johnson","email":"tejohnso@rogers.com"},{"name":"Brandon Ramirez","email":"brandon.s.ramirez@gmail.com"}],"bugs":{"url":"https://github.com/brandonramirez/connect-session-mongo/issues"},"os":["darwin","linux"],"engines":{"node":">=0.2.0"},"directories":{"lib":"lib"},"main":"./lib/connect-session-mongo","dependencies":{"connect":">=2.0.0","mongodb":">=0.8.0"},"licenses":[{"type":"BSD","url":"https://github.com/brandonramirez/connect-session-mongo/blob/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/brandonramirez/connect-session-mongo.git"},"readme":"# MongoDB Session Storage for Connect Middleware\n\nThis module is an addon for [Connect Middleware](https://github.com/senchalabs/connect) that adds a new [Session Storage device](https://github.com/senchalabs/connect/blob/master/docs/session.md).\n\n\n## Install\n\n    npm install connect-session-mongo\n\n## Usage\n\nThe standard usage, is to just pass an instantiated `MongoStore` instance to the session plugin.\n\n    var connect = require('connect'),\n        MongoStore = require('connect-session-mongo');\n\n    var app = connect.createServer();\n\n    app.configure(function(){\n        app.use(connect.cookieDecoder());\n        app.use(connect.session({ store: new MongoStore() }));\n        app.use(app.router);\n    });\n\nYou can also pass several options to the constructor to tweak your session store:\n\n* db - The name of the db to use, defaults to: `connect-sessions`\n* ip - The IP address of the server to connect to, defaults to: `127.0.0.1`\n* port - The Port to connect to, defaults to: `27017`\n* collection - The collection to save its data to, defaults to: `sessions`\n* server - A custom mongo Server instance (this overides db, ip &amp; port)\n* url - A url to use for Db.connect style database connections (this overrides db, ip, port &amp; server)\n* timeout - Number of seconds before an idle session is removed (optional)\n\nAn optional callback function(err, connectedDb) can also be passed to the constructor after the options.\n\n<pre><code>var CustomServer = new Server(123.456.789.1, 12345, { auto_reconnect: true }, {});\napp.use(connect.session({ store: new MongoStore({ server: CustomServer }) }));</code></pre>\n\n<pre><code>app.use(connect.session({url: process.env.MONGO_URL}, function(err,db) {if (err) {throw err;}}));</code></pre>\n\n## License\n\nLicensed the [BSD license](https://github.com/bartt/connect-session-mongo/blob/master/LICENSE).\n\n### Based on these classes\n\n* [Sencha Connect Memory Store](https://github.com/senchalabs/connect/tree/master/lib/connect/middleware/session/memory.js)\n* [ciaranj's express-session-mongodb](https://github.com/ciaranj/express-session-mongodb)\n* [davglass's express-session-mongodb](https://github.com/davglass/express-session-mongodb)\n","readmeFilename":"README.md","_id":"connect-session-mongo@0.0.6","dist":{"shasum":"451f6d0d8f5b3bc346a1206e5305973a0e4e0a1b","tarball":"https://registry.npmjs.org/connect-session-mongo/-/connect-session-mongo-0.0.6.tgz","integrity":"sha512-tQ9qFxkBeoVG7WgGY8QsybG3uMHacopohn9sHezdDFBEZGskeq03gIAadzI+0lDK1UnM3XYQKwN78maihCrUHw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCH1nCp8STcT2uJugjO30RzIC0wsS9nqXG/AwSYZyKzQwCIQCxnKyaRejJRoV1G++5K0vJ4GujacUwFL5bz1yZZ+rwcw=="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"brandonramirez","email":"brandon.s.ramirez@gmail.com"},"maintainers":[{"name":"bartt","email":"bart@zazengo.com"},{"name":"brandonramirez","email":"brandon.s.ramirez@gmail.com"}]},"0.0.7":{"name":"connect-session-mongo","version":"0.0.7","description":"MongoDB Session Store for Connect Middleware","author":{"name":"Bart Teeuwisse","email":"bart@thecodemill.biz"},"contributors":[{"name":"Dav Glass","email":"davglass@gmail.com"},{"name":"Tyler Johnson","email":"tejohnso@rogers.com"},{"name":"Brandon Ramirez","email":"brandon.s.ramirez@gmail.com"}],"bugs":{"url":"https://github.com/brandonramirez/connect-session-mongo/issues"},"os":["darwin","linux"],"engines":{"node":">=0.2.0"},"directories":{"lib":"lib"},"main":"./lib/connect-session-mongo","peerDependencies":{"connect":">=2.0.0"},"dependencies":{"mongodb":">=0.8.0"},"licenses":[{"type":"BSD","url":"https://github.com/brandonramirez/connect-session-mongo/blob/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/brandonramirez/connect-session-mongo.git"},"readme":"# MongoDB Session Storage for Connect Middleware\n\nThis module is an addon for [Connect Middleware](https://github.com/senchalabs/connect) that adds a new [Session Storage device](https://github.com/senchalabs/connect/blob/master/docs/session.md).\n\n\n## Install\n\n    npm install connect-session-mongo\n\n## Usage\n\nThe standard usage, is to just pass an instantiated `MongoStore` instance to the session plugin.\n\n    var connect = require('connect'),\n        MongoStore = require('connect-session-mongo');\n\n    var app = connect.createServer();\n\n    app.configure(function(){\n        app.use(connect.cookieDecoder());\n        app.use(connect.session({ store: new MongoStore() }));\n        app.use(app.router);\n    });\n\nYou can also pass several options to the constructor to tweak your session store:\n\n* db - The name of the db to use, defaults to: `connect-sessions`\n* ip - The IP address of the server to connect to, defaults to: `127.0.0.1`\n* port - The Port to connect to, defaults to: `27017`\n* collection - The collection to save its data to, defaults to: `sessions`\n* server - A custom mongo Server instance (this overides db, ip &amp; port)\n* url - A url to use for Db.connect style database connections (this overrides db, ip, port &amp; server)\n* timeout - Number of seconds before an idle session is removed (optional)\n\nAn optional callback function(err, connectedDb) can also be passed to the constructor after the options.\n\n<pre><code>var CustomServer = new Server(123.456.789.1, 12345, { auto_reconnect: true }, {});\napp.use(connect.session({ store: new MongoStore({ server: CustomServer }) }));</code></pre>\n\n<pre><code>app.use(connect.session({url: process.env.MONGO_URL}, function(err,db) {if (err) {throw err;}}));</code></pre>\n\n## License\n\nLicensed the [BSD license](https://github.com/bartt/connect-session-mongo/blob/master/LICENSE).\n\n### Based on these classes\n\n* [Sencha Connect Memory Store](https://github.com/senchalabs/connect/tree/master/lib/connect/middleware/session/memory.js)\n* [ciaranj's express-session-mongodb](https://github.com/ciaranj/express-session-mongodb)\n* [davglass's express-session-mongodb](https://github.com/davglass/express-session-mongodb)\n","readmeFilename":"README.md","_id":"connect-session-mongo@0.0.7","dist":{"shasum":"2b9ee57abce86402b286bccf28aa2458cd0c298d","tarball":"https://registry.npmjs.org/connect-session-mongo/-/connect-session-mongo-0.0.7.tgz","integrity":"sha512-G7+Olmadsf/LwYhsCrr6Zn+HBrTw/XRwaaiz3+pjAK4byzd+C1mF2r5SCN+ZsUD4INrPK1tRiuNIn1lre55RrA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAWzXs417OgmAKZKSA/8x57vseYeI81bRNJc4p4ea5eVAiA9PtaoDzNEIxmnav+n7hnCzTWovzX0+qYaNkDnyQdwiQ=="}]},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"brandonramirez","email":"brandon.s.ramirez@gmail.com"},"maintainers":[{"name":"bartt","email":"bart@zazengo.com"},{"name":"brandonramirez","email":"brandon.s.ramirez@gmail.com"}]},"0.0.8":{"name":"connect-session-mongo","version":"0.0.8","description":"MongoDB Session Store for Connect Middleware","author":{"name":"Bart Teeuwisse","email":"bart@thecodemill.biz"},"contributors":[{"name":"Dav Glass","email":"davglass@gmail.com"},{"name":"Tyler Johnson","email":"tejohnso@rogers.com"},{"name":"Brandon Ramirez","email":"brandon.s.ramirez@gmail.com"}],"bugs":{"url":"https://github.com/brandonramirez/connect-session-mongo/issues"},"os":["darwin","linux","sunos"],"engines":{"node":">=0.2.0"},"directories":{"lib":"lib"},"main":"./lib/connect-session-mongo","peerDependencies":{"connect":">=2.0.0"},"dependencies":{"mongodb":">=0.8.0"},"licenses":[{"type":"BSD","url":"https://github.com/brandonramirez/connect-session-mongo/blob/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/brandonramirez/connect-session-mongo.git"},"readme":"# MongoDB Session Storage for Connect Middleware\n\nThis module is an addon for [Connect Middleware](https://github.com/senchalabs/connect) that adds a new [Session Storage device](https://github.com/senchalabs/connect/blob/master/docs/session.md).\n\n\n## Install\n\n    npm install connect-session-mongo\n\n## Usage\n\nThe standard usage, is to just pass an instantiated `MongoStore` instance to the session plugin.\n\n    var connect = require('connect'),\n        MongoStore = require('connect-session-mongo');\n\n    var app = connect.createServer();\n\n    app.configure(function(){\n        app.use(connect.cookieDecoder());\n        app.use(connect.session({ store: new MongoStore() }));\n        app.use(app.router);\n    });\n\nYou can also pass several options to the constructor to tweak your session store:\n\n* db - The name of the db to use, defaults to: `connect-sessions`\n* ip - The IP address of the server to connect to, defaults to: `127.0.0.1`\n* port - The Port to connect to, defaults to: `27017`\n* collection - The collection to save its data to, defaults to: `sessions`\n* server - A custom mongo Server instance (this overides db, ip &amp; port)\n* url - A url to use for Db.connect style database connections (this overrides db, ip, port &amp; server)\n* timeout - Number of seconds before an idle session is removed (optional)\n\nAn optional callback function(err, connectedDb) can also be passed to the constructor after the options.\n\n<pre><code>var CustomServer = new Server(123.456.789.1, 12345, { auto_reconnect: true }, {});\napp.use(connect.session({ store: new MongoStore({ server: CustomServer }) }));</code></pre>\n\n<pre><code>app.use(connect.session({url: process.env.MONGO_URL}, function(err,db) {if (err) {throw err;}}));</code></pre>\n\n## License\n\nLicensed the [BSD license](https://github.com/bartt/connect-session-mongo/blob/master/LICENSE).\n\n### Based on these classes\n\n* [Sencha Connect Memory Store](https://github.com/senchalabs/connect/tree/master/lib/connect/middleware/session/memory.js)\n* [ciaranj's express-session-mongodb](https://github.com/ciaranj/express-session-mongodb)\n* [davglass's express-session-mongodb](https://github.com/davglass/express-session-mongodb)\n","readmeFilename":"README.md","_id":"connect-session-mongo@0.0.8","dist":{"shasum":"68215fee032b97f7592311d8ba1455560f046efa","tarball":"https://registry.npmjs.org/connect-session-mongo/-/connect-session-mongo-0.0.8.tgz","integrity":"sha512-i1AcRV0bLIsLWlzt3Cf1OGbU3BmPwt6iiEfy95rsIJUUj88x1KNSaXkusa5lv1dWIFocxLvoOhsgXCnKXfpkCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfkgNIBi2j2MPr6s0PB9aNqI2uawfhU2+bT0lvApF0UwIhAJor1aqL/uXcRzYTPgy/i9jrd1KIBqSkwlr2FVojcP0W"}]},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"brandonramirez","email":"brandon.s.ramirez@gmail.com"},"maintainers":[{"name":"bartt","email":"bart@zazengo.com"},{"name":"brandonramirez","email":"brandon.s.ramirez@gmail.com"}]},"0.0.9":{"name":"connect-session-mongo","version":"0.0.9","description":"MongoDB Session Store for Connect Middleware","author":{"name":"Bart Teeuwisse","email":"bart@thecodemill.biz"},"contributors":[{"name":"Dav Glass","email":"davglass@gmail.com"},{"name":"Tyler Johnson","email":"tejohnso@rogers.com"},{"name":"Brandon Ramirez","email":"brandon.s.ramirez@gmail.com"}],"bugs":{"url":"https://github.com/brandonramirez/connect-session-mongo/issues"},"os":["darwin","linux","sunos"],"engines":{"node":">=0.2.0"},"directories":{"lib":"lib"},"main":"./lib/connect-session-mongo","peerDependencies":{"connect":">=2.0.0"},"dependencies":{"mongodb":">=0.8.0"},"licenses":[{"type":"BSD","url":"https://github.com/brandonramirez/connect-session-mongo/blob/master/LICENSE"}],"repository":{"type":"git","url":"https://github.com/brandonramirez/connect-session-mongo.git"},"readme":"# MongoDB Session Storage for Connect Middleware\n\nThis module is an addon for [Connect Middleware](https://github.com/senchalabs/connect) that adds a new [Session Storage device](https://github.com/senchalabs/connect/blob/master/docs/session.md).\n\n\n## Install\n\n    npm install connect-session-mongo\n\n## Usage\n\nThe standard usage, is to just pass an instantiated `MongoStore` instance to the session plugin.\n\n    var connect = require('connect'),\n        MongoStore = require('connect-session-mongo');\n\n    var app = connect.createServer();\n\n    app.configure(function(){\n        app.use(connect.cookieDecoder());\n        app.use(connect.session({ store: new MongoStore() }));\n        app.use(app.router);\n    });\n\nYou can also pass several options to the constructor to tweak your session store:\n\n* db - The name of the db to use, defaults to: `connect-sessions`\n* ip - The IP address of the server to connect to, defaults to: `127.0.0.1`\n* port - The Port to connect to, defaults to: `27017`\n* collection - The collection to save its data to, defaults to: `sessions`\n* server - A custom mongo Server instance (this overides db, ip &amp; port)\n* url - A url to use for Db.connect style database connections (this overrides db, ip, port &amp; server)\n* timeout - Number of seconds before an idle session is removed (optional)\n* username - Username to authenticate to the database server as (optional)\n* password - Password for the given user to authenticate to the database server (optional)\n\nAn optional callback function(err, connectedDb) can also be passed to the constructor after the options.\n\n<pre><code>var CustomServer = new Server(123.456.789.1, 12345, { auto_reconnect: true }, {});\napp.use(connect.session({ store: new MongoStore({ server: CustomServer }) }));</code></pre>\n\n<pre><code>app.use(connect.session({url: process.env.MONGO_URL}, function(err,db) {if (err) {throw err;}}));</code></pre>\n\n## License\n\nLicensed the [BSD license](https://github.com/bartt/connect-session-mongo/blob/master/LICENSE).\n\n### Based on these classes\n\n* [Sencha Connect Memory Store](https://github.com/senchalabs/connect/tree/master/lib/connect/middleware/session/memory.js)\n* [ciaranj's express-session-mongodb](https://github.com/ciaranj/express-session-mongodb)\n* [davglass's express-session-mongodb](https://github.com/davglass/express-session-mongodb)\n","readmeFilename":"README.md","homepage":"https://github.com/brandonramirez/connect-session-mongo","_id":"connect-session-mongo@0.0.9","dist":{"shasum":"a0bdbc0b6cf3a6aa0a1837d4bc2b8f2c50417629","tarball":"https://registry.npmjs.org/connect-session-mongo/-/connect-session-mongo-0.0.9.tgz","integrity":"sha512-j3ZmPsU3nFQ/QImF3r4ldERGW3hUrXLPoWddCdnOS1eo6Oa6LEq07HUfKQbuFPqFPkKYNsSt8asRN5lxaaqNNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxr9kIRoxfw339LJJJESFnzPewtqZL4ZQpI5xNoP+O+AiEAp+YFcnPvSfUmCK6WpIKlrgsmbyKwtY9NuPXbHNPmqKk="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"brandonramirez","email":"brandon.s.ramirez@gmail.com"},"maintainers":[{"name":"bartt","email":"bart@zazengo.com"},{"name":"brandonramirez","email":"brandon.s.ramirez@gmail.com"}]}},"maintainers":[{"name":"bartt","email":"bart@zazengo.com"},{"name":"brandonramirez","email":"brandon.s.ramirez@gmail.com"}],"author":{"name":"Bart Teeuwisse","email":"bart@thecodemill.biz"},"repository":{"type":"git","url":"https://github.com/brandonramirez/connect-session-mongo.git"},"time":{"modified":"2022-06-13T21:45:08.955Z","created":"2011-09-13T19:24:20.603Z","0.0.1":"2011-09-13T19:24:20.603Z","0.0.2":"2011-09-13T19:24:20.603Z","0.0.3":"2011-09-13T19:24:20.603Z","0.0.4":"2011-09-13T19:24:20.603Z","0.0.5":"2012-10-24T00:49:22.901Z","0.0.6":"2012-12-23T06:24:34.940Z","0.0.7":"2013-02-20T01:12:23.519Z","0.0.8":"2013-04-08T01:03:11.751Z","0.0.9":"2013-11-25T02:12:54.391Z"}}