Closed dead-horse closed 9 years ago
that would be more middleware imo unless you can make a pluggable god object, which would be difficult to suit everyone's needs. sessions are also very opinionated and db-specific. for ex, i think this is really good:
As sessions are not directly an http 'thing', I think that belongs elsewhere in any case.
I've had great success with https://github.com/rvagg/node-generic-session
can we create a new session module can be used in all web frameworks?