In PHP, almost everything is created on every hit page. If you want to save state, you have a choice:
- For user data, you can put it in a cookie ( not recommended for security reasons);
- , ;
- , ;
- - (, memcached).
, , , , .. (, , ..).
, , , , . , , , . , .