Skip to content

not persistent cookie values after enter in another route #1043

Answered by joewagner
lokize asked this question in Q&A
Discussion options

You must be logged in to vote

HI @lokize @kkmr2011 and @mirker21
Looks like you might not be using the session.cookie property correctly. The valid settable properties are listed in the readme.
They are cookie.expires and cookie.maxAge, you can't set role or client and if you did it would not have any effect.
If you are hoping to save those values in the session, you might want to try doing something like
req.session.userClient = response.data.user.profile.client

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bjohansebas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #918 on May 16, 2025 02:07.