Is it possible to change the session ID using a function? #14
Unanswered
htakao1234
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
I am a beginner of Nextjs13.
This is my first time using
next-app-sessionusing AppRouter.I'm using Redis for my store and making sure the session ID is set in the RouteHandler cookie and Redis.
I would like to set an expiration time on this configured session value and change the session ID to a new nanoid() once it expires.
Expiration time and session values are obtained separately from the API.
Is it possible to change to a new session ID within RouteHandler?
What I tried
The definition of store is this
Beta Was this translation helpful? Give feedback.
All reactions