expressjs/session

update Readme to include details on extending Store implementation from store.js

开放

#349 创建于 2016年8月30日

 (4 条评论) (2 个反应) (0 位负责人)JavaScript (977 个派生)batch import
docshelp wanted

仓库指标

星标
 (6,073 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

As noted in a comment on #97, developers who want to write a Store implementation either need to:

  1. extend their Store from express-session's store.js, which typically means requiring express-session as a dependency
  2. 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.

贡献者指南