Skip to content

How to handle custom session data? #382

Closed Answered by BrocksiNet
realconvis asked this question in Q&A
Discussion options

You must be logged in to vote

We answered this question in community Slack.

Quote Björn:

Hi
The question for me is:
What happens or is changing for the customer when the cookie or session value is A or B.

Also I would think about does it needs to be a session value or if a cookie value is enough.

Nuxt docus:
https://nuxt.com/docs/api/composables/use-cookie
https://nuxt.com/modules/session

I think the session is more complex to integrate.

And yes if some endpoint should return something else depending on the session or cookie you need to create it. For frontends, you should always provide store API endpoints and not controllers.

That's my 50 cents for your question.

Quote Niklas:

In this case I’d go with a custom co…

Replies: 1 comment

Comment options

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