Hi,
I need to hold a value globally which could be user ID or DB object and so on.
The value must be accessible from any classes or files. In this case which design pattern would you use?
Superglobals? Constants? Singleton? Static?
Thanks in advance