Prefer immovable/product with Session/cookies using php

Asked

Viewed 143 times

2

How is developed applications that gives the user option to add real estate/products to a favorites list with Session/cookies using php without database?

1 answer

0

If you do not want to use a database, you will need to save in another location that allows future queries, such as files or cookies.

The risk of saving to cookies is that they are transferred in all HTTP requests. That is, if you save a lot of data in cookies, the HTTP header will be large and requests will be time consuming.

The ideal would be to save only one user identifier to the cookie and keep the real estate Ids on the server, either in a database or in files

  • You have an example of how this application would look?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.