xpblueScreenOfDeath
Programmer
- Sep 1, 2004
- 87
I want to make an object that will be global to every PHP page regardless of the user's session. I want the object to stay in memory as any user is accessing any of the pages and stay in memory for at least 30 minutes if no user is browsing any of the pages. Will a singleton accomplish this or is a singleton specific to a single user session? Is there a way to do this in PHP, and if so how? Thanks.