Is there a way in PHP to use persistent data as in Java EE? (sharing objects between PHP threads) without session nor cache/DB

前端 未结 4 707
广开言路
广开言路 2020-12-06 18:43

Is there a way in PHP to use \"out of session\" variables, which would not be loaded/unloaded at every connexion, like in a Java server ?

Please excuse me for the la

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 18:49

    I think you can use $_SESSION['aConstantValueForEveryone'] that you can read it on every page on same domain.

    Consider to refer to it's manual.

提交回复
热议问题