expressjs/session
Vedi su GitHubupdate Readme to include details on extending Store implementation from store.js
Open
#349 aperta il 30 ago 2016
docshelp wanted
Metriche repository
- Star
- (6073 star)
- Metriche merge PR
- (Merge medio 8g) (2 PR mergiate in 30 g)
Descrizione
As noted in a comment on #97, developers who want to write a Store implementation either need to:
- extend their Store from express-session's store.js, which typically means requiring express-session as a dependency
- implement their own version of the functionality in store.js, session.js, and cookie.js (or copy the files from express-session)
This is because express-session requires the following methods on the Store in order to work:
- regenerate()
- load()
- createSession()
These are available in store.js, but createSession itself requires both session.js and cookie.js.
The documentation should be updated to provide guidance on these facts.