{"action":"created","issue":{"url":"https://api.github.com/repos/simov/express-admin/issues/94","labels_url":"https://api.github.com/repos/simov/express-admin/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/simov/express-admin/issues/94/comments","events_url":"https://api.github.com/repos/simov/express-admin/issues/94/events","html_url":"https://github.com/simov/express-admin/pull/94","id":122739117,"number":94,"title":"Allow passing in custom session","user":{"login":"joshuakarjala","id":88015,"avatar_url":"https://avatars.githubusercontent.com/u/88015?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuakarjala","html_url":"https://github.com/joshuakarjala","followers_url":"https://api.github.com/users/joshuakarjala/followers","following_url":"https://api.github.com/users/joshuakarjala/following{/other_user}","gists_url":"https://api.github.com/users/joshuakarjala/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuakarjala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuakarjala/subscriptions","organizations_url":"https://api.github.com/users/joshuakarjala/orgs","repos_url":"https://api.github.com/users/joshuakarjala/repos","events_url":"https://api.github.com/users/joshuakarjala/events{/privacy}","received_events_url":"https://api.github.com/users/joshuakarjala/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-17T13:55:20Z","updated_at":"2015-12-18T11:27:46Z","closed_at":"2015-12-17T18:07:22Z","pull_request":{"url":"https://api.github.com/repos/simov/express-admin/pulls/94","html_url":"https://github.com/simov/express-admin/pull/94","diff_url":"https://github.com/simov/express-admin/pull/94.diff","patch_url":"https://github.com/simov/express-admin/pull/94.patch"},"body":"This allow us to use different session backends for **express-admin**. Primary use case is to let us use redis / pg or other storage to allow concurrent **express-admin** instances without CSRF errors"},"comment":{"url":"https://api.github.com/repos/simov/express-admin/issues/comments/165752816","html_url":"https://github.com/simov/express-admin/pull/94#issuecomment-165752816","issue_url":"https://api.github.com/repos/simov/express-admin/issues/94","id":165752816,"user":{"login":"joshuakarjala","id":88015,"avatar_url":"https://avatars.githubusercontent.com/u/88015?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuakarjala","html_url":"https://github.com/joshuakarjala","followers_url":"https://api.github.com/users/joshuakarjala/followers","following_url":"https://api.github.com/users/joshuakarjala/following{/other_user}","gists_url":"https://api.github.com/users/joshuakarjala/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuakarjala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuakarjala/subscriptions","organizations_url":"https://api.github.com/users/joshuakarjala/orgs","repos_url":"https://api.github.com/users/joshuakarjala/repos","events_url":"https://api.github.com/users/joshuakarjala/events{/privacy}","received_events_url":"https://api.github.com/users/joshuakarjala/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T11:27:46Z","updated_at":"2015-12-18T11:27:46Z","body":"Yes - like\r\n\r\n```javascript\r\nvar adminConfig = {\r\n  config: require('./admin-config/config'),\r\n  settings: require('./admin-config/settings.json'),\r\n  custom: require('./admin-config/custom.json'),\r\n  users: require('./admin-config/users'),\r\n  dpath: './admin-config/',\r\n  session: session({\r\n    store: new PgSession({\r\n      pg: pg,\r\n      conString: process.env.DB_CONNECTION_STRING,\r\n      tableName: 'user_sessions'\r\n    }),\r\n    secret: process.env.ADMIN_COOKIE_SECRET,\r\n    resave: false,\r\n    saveUninitialized: false,\r\n    cookie: { maxAge: 30 * 24 * 60 * 60 * 1000 }\r\n  })\r\n};\r\n```"}}