I want store a variable shared between sessions (application-scope):
- It is not user session-specific (so I can't put it in $_SESSION[]).
- It is a long term storage (so I can't use APC - Alternative PHP Cache).
So, I use a file do store the variable and access it using file_get_contents and file_put_contents functions.
Is it a good way of proceeding or is there any alternative?