Quote:
Originally Posted by Dismounted
HTTP is a stateless protocol - it doesn't know what you've done before. I think you need to have a look at how the PHP "static" keyword works.
|
Yes it appears the the entire code is re-run / re-initialized every time it is executed. Whereas it appears a "session variable" is not re-initialized every time the is executed, it is supposed to keep it's value until the session ends.
My goal is a simple counter that keeps track of how many times people click refresh on a page as a simple exercise to learn how this stuff works.
I've read PHP.net, w3schools.com, and several other of the links in the resource sticky. In addition have spent many hours searching this forum & vB.com forums. If you have further input on how to learn I'm interested.