Is there something above the session to all the users?

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!

Moderator: General Moderators

Post Reply
nadavvin
Forum Commoner
Posts: 68
Joined: Wed Sep 06, 2006 6:05 am

Is there something above the session to all the users?

Post by nadavvin »

Hello

I have class which I want to use with only one instance for all the pages and users.

It is possible?

For php4 and 5.

Nadav
GM
Forum Contributor
Posts: 365
Joined: Wed Apr 26, 2006 4:19 am
Location: Italy

Post by GM »

Only thing I can think of that remains the same for all users and all pages is the database and the file system.

You could store your class data as a serialized string in the database, and pull it out at the opening of every page.

If it isn't going to change much, then maybe you could also use text files to store the same data.
Post Reply