hoangvvo/next-session

next-session does not touch browser cookie

plashenkov opened this issue · 2 comments

Hi Hoang!

It's still an issue for me: the browser cookie doesn't update its "expires" value although rolling = true:

session({
  store: promisifyStore(redisStore),
  rolling: true,
  cookie: {
    secure: true,
    httpOnly: true,
    sameSite: 'lax',
    maxAge: 7 * 24 * 60 * 60,
  }
})

Here is a screencast: https://take.ms/12A7f

Maybe I do something wrong?

Relates to: #46

Also I've noted that if I do not change the session data, "expires" value doesn't change even on a server.

And: if I do not put any data into the session, then the browser gets a new cookie on each page refresh, session ID is changing every time. And session store is empty in this case.

Is that really okay? Maybe a session with empty data should be persisted too?

Hmm, looks like everything is fine now, some problems were on my side.
Thanks!