Louisa
Louisa

Reputation: 550

PHP session alternative, shared by everybody

All the visitors on our site needs to be able to access data from a slightly advanced data structure.

Currently we have the data structure in a session variable, but as far as I understand session means that all of our visitors have their own copy of the data.

That is not good as we get more and more visitors all the time.

So is there an alternative to session that we can use? An alternative that is shared by all the users.

Upvotes: 0

Views: 105

Answers (1)

Nick Mitchinson
Nick Mitchinson

Reputation: 5480

It sounds like you are looking for a database. However I feel like you're looking for something more temporary than a full database, more something to represent the current state of your app/site? If I'm right in this, a cache of some kind should suit your needs. Try memcached or Redis.

Upvotes: 2

Related Questions