In PHP, MUST we make the user create an account to use the $_SESSION ? (Explained in the description)
I have an exercise where I have to create a website that asks the user to enter a city name. If the city exists in the database (that I have already filled with a few cities), it shows the user a small description of the city. I managed to do that part. But now I have to add a feature for the user: I have to display on the index page, for exampler under the form, a list of the cities they already searched (of course just this user, not all the cities that everyone ever searched on the website). So I created a "user_search" table in the database to store their entry and I know I have to use sessions for that and I've learned some stuff about them but I don't quite understand everything yet. And I am under the impression that we can use them without having to make the user create an account and identify themself. Or am I wrong? Thank you for the help !