derdesign/core-js — comment on commit 5230b38444e062235e421f8a9ca4f9c0e0a3b439
File: skeleton/controllers/main_controller.js line 18
By derdesign:

It is indeed redundand, I hate it as much as you do. Internally, the session uses functions from both the request and response object, such as req.getCookie, res.setCookie, etc.

Functions only have access to their own closure. There is no way of passing the req & res object to the session, unless we pass them as parameters.

Suggestions for a different approach are welcome.