S
S
Steve2021-12-24 11:36:42
PHP
Steve, 2021-12-24 11:36:42

Where should the session be logged when an anonymous user enters the site?

I want to write an authorized and guest basket on Symfony 5.
The main question is about the guest basket, which I want to build on sessions and, in addition, store basket data in the database so that after authorization the user receives goods from the `basket_session` table to the `basket_customer` table .

- Where should the session be registered (it's Symfony) when an anonymous visits the site? (this is not clear in the official docs)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2021-12-24
@CenterJoin

1. Do not think in tables - nothing good will come of it
2. You can also store in NoSQL, which is even better. For example redis.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question