koajs / session

Simple session middleware for koa
MIT License
901 stars 113 forks source link

Why is there set-cookie in every response? #214

Open RookieGz opened 3 years ago

RookieGz commented 3 years ago

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
RookieGz commented 3 years ago

and

截屏2021-08-26 10 01 27
momocow commented 2 years ago

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) /