{"action":"created","issue":{"url":"https://api.github.com/repos/expressjs/session/issues/145","labels_url":"https://api.github.com/repos/expressjs/session/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/session/issues/145/comments","events_url":"https://api.github.com/repos/expressjs/session/issues/145/events","html_url":"https://github.com/expressjs/session/issues/145","id":69592222,"number":145,"title":"Cannot read property 'session' of undefined","user":{"login":"boynedmaster","id":3190756,"avatar_url":"https://avatars.githubusercontent.com/u/3190756?v=3","gravatar_id":"","url":"https://api.github.com/users/boynedmaster","html_url":"https://github.com/boynedmaster","followers_url":"https://api.github.com/users/boynedmaster/followers","following_url":"https://api.github.com/users/boynedmaster/following{/other_user}","gists_url":"https://api.github.com/users/boynedmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/boynedmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boynedmaster/subscriptions","organizations_url":"https://api.github.com/users/boynedmaster/orgs","repos_url":"https://api.github.com/users/boynedmaster/repos","events_url":"https://api.github.com/users/boynedmaster/events{/privacy}","received_events_url":"https://api.github.com/users/boynedmaster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/expressjs/session/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-20T13:56:01Z","updated_at":"2015-04-20T22:44:03Z","closed_at":null,"body":"```\r\nN:\\MyBGO\\Server\\node_modules\\express-session\\index.js:151\r\n    if (req.session) return next();\r\n           ^\r\nTypeError: Cannot read property 'session' of undefined\r\n    at session (N:\\MyBGO\\Server\\node_modules\\express-session\\index.js:151:12)\r\n    at Object.<anonymous> (N:\\MyBGO\\Server\\mybgo.js:68:11)\r\n    at Object.<anonymous> (N:\\MyBGO\\Server\\mybgo.js:98:4)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Function.Module.runMain (module.js:497:10)\r\n    at startup (node.js:119:16)\r\n    at node.js:901:3\r\n```"},"comment":{"url":"https://api.github.com/repos/expressjs/session/issues/comments/94585798","html_url":"https://github.com/expressjs/session/issues/145#issuecomment-94585798","issue_url":"https://api.github.com/repos/expressjs/session/issues/145","id":94585798,"user":{"login":"boynedmaster","id":3190756,"avatar_url":"https://avatars.githubusercontent.com/u/3190756?v=3","gravatar_id":"","url":"https://api.github.com/users/boynedmaster","html_url":"https://github.com/boynedmaster","followers_url":"https://api.github.com/users/boynedmaster/followers","following_url":"https://api.github.com/users/boynedmaster/following{/other_user}","gists_url":"https://api.github.com/users/boynedmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/boynedmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boynedmaster/subscriptions","organizations_url":"https://api.github.com/users/boynedmaster/orgs","repos_url":"https://api.github.com/users/boynedmaster/repos","events_url":"https://api.github.com/users/boynedmaster/events{/privacy}","received_events_url":"https://api.github.com/users/boynedmaster/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T22:44:03Z","updated_at":"2015-04-20T22:44:03Z","body":"(This is compiled CoffeeScript, by the way)\r\n(Also the error line changed apparently, Line 53 now)\r\napp.use(session());\r\n\r\n(Also the variables that relate to this)\r\nexpressSession = require(\"express-session\");\r\nsession = expressSession({\r\n    secret: \"mysecret\",\r\n    key: \"mybho.sid\",\r\n    resave: true,\r\n    saveUninitialized: true,\r\n    store: new mysql_store(mysql_options)\r\n  });"}}