I have a very simple apache server to serve html and vanilla javascript files. It should be public but I need to have terms and conditions accepted before showing any content.
I don't care about tracking guests, I just need people to accept the terms and then visit the site.
Should I do this with PHP sessions? cookies? if so, how should I go about it?
I don't want or need to use any frameworks.
There is no need to store sessions in a database, they can be closed as soon as the broswer is closed, and any visitor can click on the agreement as many times as they open a new window.
I plan to do this using php 7 > and most of the information is many years old so the other questions are useless to me.
If it can be done someway using apache itself it would also work for me.
Aucun commentaire:
Enregistrer un commentaire