php share variable among different users/sessions

前端 未结 2 548
暖寄归人
暖寄归人 2020-11-29 13:44

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

also the variable\'s value has to be modifiable.

2条回答
  •  天命终不由人
    2020-11-29 13:46

    Just use a database table for storing that value.

    That's the simplest way to store persistent application-wide data in a Web application.

提交回复
热议问题