I am using php 5.4
Global Session for all users
By default session data is
serialized and saved to a temporary file associated with the user's session, which is tracked by a cookie. You can configure session data to be saved in the database as well. This data is available via the
$_SESSION superglobal per user.
So if you follow that logic, then either store
serialized data in a file or store it in the database and to access it, it won't be a superglobal, but something almost a superglobal if you read it in as a global array such as
You can do the same with an object or static class. It's really the same as config variables that you would use for your application regardless of the user.