PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I need to display a part of my page only the first time a user displays the first page.
The site is not using sessions or any loging systems.
I thought of creating a cookie the first time the user displays the first page, that would last for an hour. The PHP page would check for that cookie's existance anf it's there - wouldn't display that part.
Is there a better and/or safer and/or faster and/or not based on time (e.g. 1 hour cookie) way to make this?
Well then they would have to suffer the wrath of the
"part-that-should-have-been-displayed-only-once-but-will-be-displayed-every-time-the-first-page-loads"!