Daniel Santos
Daniel Santos

Reputation: 15808

How persist a simple variable for all different sessions in php?

There is a very complex calculation and system health verifications that returns a numeric variable.

This variable will be displayed in every page, But I don't want to make this verification and calculation every navigation. This value should be visible to EVERY session for all users, not just one session. the most simple solution could be a global variable that would persist and be available for all sessions.

Filesytem or database are not an option.

Is that possible in PHP?

Upvotes: 0

Views: 38

Answers (1)

Candyman1332
Candyman1332

Reputation: 117

shared memory could be a solution.

Upvotes: 1

Related Questions