koajs / session

Simple session middleware for koa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should update the prevHash in context when calling ctx.session.mauallyCommit()

tangye1234 opened this issue · comments

When I manually commit, which is possibly at the time when I need to set ctx.respond = false,
The autoCommit functioning part still tries to commit again, event if the session is not changed.

The reason is the prevHash is not updated when committing due to the reason 'changed'?