{"_id":"koa-mysql-session","_rev":"432156","name":"koa-mysql-session","description":"a session store compatible with koa-generic-session based off of the SQL logic in the connect mysql-session-store project","dist-tags":{"latest":"0.0.2"},"maintainers":[{"name":"tb01923","email":"akaphenom@gmail.com"}],"time":{"modified":"2021-08-05T05:49:15.000Z","created":"2014-09-21T15:25:39.811Z","0.0.2":"2014-10-20T18:51:07.166Z","0.0.1":"2014-10-20T16:17:05.883Z","0.0.0":"2014-09-21T15:25:39.811Z"},"users":{"michael_hee":true},"author":{"name":"todd brown"},"repository":{"type":"git","url":"https://github.com/tb01923/koa-mysql-session.git"},"versions":{"0.0.2":{"name":"koa-mysql-session","version":"0.0.2","description":"a session store compatible with koa-generic-session based off of the SQL logic in the connect mysql-session-store project","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/tb01923/koa-mysql-session.git"},"keywords":["koa","session","mysql","nodejs"],"author":{"name":"todd brown"},"license":"ISC","bugs":{"url":"https://github.com/tb01923/koa-mysql-session/issues"},"homepage":"https://github.com/tb01923/koa-mysql-session","dependencies":{"co":"^3.1.0","co-mysql":"^0.4.1"},"_id":"koa-mysql-session@0.0.2","_shasum":"b7f32f4dd2c37a5f7992261797c59373704edc89","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"tb01923","email":"akaphenom@gmail.com"},"maintainers":[{"name":"tb01923","email":"akaphenom@gmail.com"}],"dist":{"shasum":"b7f32f4dd2c37a5f7992261797c59373704edc89","size":2071,"noattachment":false,"key":"/koa-mysql-session/-/koa-mysql-session-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-mysql-session/download/koa-mysql-session-0.0.2.tgz"},"directories":{},"publish_time":1413831067166,"_cnpm_publish_time":1413831067166,"_hasShrinkwrap":false},"0.0.1":{"name":"koa-mysql-session","version":"0.0.1","description":"a session store compatible with koa-generic-session based off of the SQL logic in the connect mysql-session-store project","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/tb01923/koa-mysql-session.git"},"keywords":["koa","session","mysql","nodejs"],"author":{"name":"todd brown"},"license":"ISC","bugs":{"url":"https://github.com/tb01923/koa-mysql-session/issues"},"homepage":"https://github.com/tb01923/koa-mysql-session","dependencies":{"co":"^3.1.0","co-mysql":"^0.4.1"},"_id":"koa-mysql-session@0.0.1","_shasum":"5091f595ad6caaea473c91c8655905c613c16ace","_from":"./","_npmVersion":"1.4.9","_npmUser":{"name":"tb01923","email":"akaphenom@gmail.com"},"maintainers":[{"name":"tb01923","email":"akaphenom@gmail.com"}],"dist":{"shasum":"5091f595ad6caaea473c91c8655905c613c16ace","size":2065,"noattachment":false,"key":"/koa-mysql-session/-/koa-mysql-session-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-mysql-session/download/koa-mysql-session-0.0.1.tgz"},"directories":{},"publish_time":1413821825883,"_cnpm_publish_time":1413821825883,"_hasShrinkwrap":false},"0.0.0":{"name":"koa-mysql-session","version":"0.0.0","description":"a session store compatible with koa-generic-session based off of the SQL logic in the connect mysql-session-store project","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/tb01923/koa-mysql-session.git"},"keywords":["koa","session","mysql","nodejs"],"author":{"name":"todd brown"},"license":"ISC","bugs":{"url":"https://github.com/tb01923/koa-mysql-session/issues"},"homepage":"https://github.com/tb01923/koa-mysql-session","dependencies":{"co":"^3.1.0","co-mysql":"^0.4.1"},"_id":"koa-mysql-session@0.0.0","_shasum":"983dead12298e27d370b78863ccb270c648c6a96","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"tb01923","email":"akaphenom@gmail.com"},"maintainers":[{"name":"tb01923","email":"akaphenom@gmail.com"}],"dist":{"shasum":"983dead12298e27d370b78863ccb270c648c6a96","size":2024,"noattachment":false,"key":"/koa-mysql-session/-/koa-mysql-session-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koa-mysql-session/download/koa-mysql-session-0.0.0.tgz"},"directories":{},"publish_time":1411313139811,"_cnpm_publish_time":1411313139811,"_hasShrinkwrap":false}},"readme":"koa-mysql-session\r\n=================\r\nthis is an adpatation of the logic from the connect mysql-session-store (https://github.com/sugendran/mysql-session-store) to koa-generic-session (https://github.com/koajs/generic-session).\r\n\r\nhttps://www.npmjs.org/package/koa-mysql-session\r\n\r\nUsage\r\n=================\r\nnpm install koa-mysql-session\r\n\r\n\r\nexample\r\n=================\r\n```js\r\nconst koa = require('koa')\r\n    , session = require('koa-generic-session')\r\n    , MysqlStore = require('koa-mysql-session')\r\n    , app = koa() ;\r\n\r\nconst THIRTY_MINTUES = 30 * 60 * 1000;\r\n\r\nconst config= {\r\n        user: \"someUser\",\r\n        password: \"somePwd\",\r\n        database: \"someDatabase\",\r\n        host: \"someHOst\"\r\n}\r\n\r\napp.keys = ['your-session-secret']\r\napp.use(session({\r\n        store: new MysqlStore(config),\r\n        rolling: true,\r\n        cookie: {\r\n            maxage:THIRTY_MINTUES\r\n        }\r\n}))\r\n","_attachments":{},"homepage":"https://github.com/tb01923/koa-mysql-session","bugs":{"url":"https://github.com/tb01923/koa-mysql-session/issues"},"license":"ISC"}