Php sharing variable for different users / sessions

I want to have a variable that has the same value for all users / clients accessing the system.

also the value of the variable must be modifiable.

as if any one user were changing the value, this change should be reflected for all other users.

+5
source share
2 answers

Store the variable in a common space like

  • File

  • Database record (easiest to implement locking, see below)

  • Memcache box

. , - , , .

+6

.

-.

+3

All Articles