I have a project id and client id , which are sessions in php that are passed in JSON format. They are stored in the global variables id_p and id_c , so I can do several attachments and updates, selects, etc. With these identifiers.
When the user selects another project or changes the page, I need to disable these variables.
- Can I pass
null value from php to global vars to reset them? - Is there a better way to do what I want?
- How to save
php values ββto php only if a file is required? The files in which the queries are executed are in separate files.
source share