Secbone / koa-session2

Middleware for Koa2 to get/set session
MIT License
153 stars 30 forks source link

Reset the session when id is found but session is missing #6

Closed silenceisgolden closed 8 years ago

silenceisgolden commented 8 years ago

An application can hang if the cookie has been set, the client makes a request, but the session is not found in the database. This modifies the code to still set a session object even if the session is not found and also reset the cookie so a new session is created.

silenceisgolden commented 8 years ago

Also, this fixes #5

Secbone commented 8 years ago

👍