koajs / session

Simple session middleware for koa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why is there set-cookie in every response?

RookieGz opened this issue · comments

Even though there is a cookie in the request, there is a set-cookie in each response.
Why not only set-cookie in the first response?
Thank you;
this my koa-session config:

截屏2021-08-25 19 09 14

and
截屏2021-08-26 10 01 27

FYI,

rolling: false,
/** (boolean) Force a session identifier cookie to be set on every response.
The expiration is reset to the original maxAge, resetting the expiration
countdown. (default is false) */