Entry
Are static variables preserved across queries to PHP?
Jun 17th, 1999 07:00
Nathan Wallace, Nathan Wallace, Sascha Schumann
No.
Every request to PHP is executed completely independently. Static
variables are static only for the current request.
If you want to store data across requests you need to use files, a
database or shared memory.
http://www.php.net/manual/variables.php3
PHPLIB is a great place to start if you are trying to create sessions
on your site and store data across requests.
http://phplib.shonline.de/