PHP environment variables? Storing data without databases

fateL

New Member
Is there a way to store a value, without writing it to a file, or storing it in a database. I think its called environment variables. So lets say I received a value of true from a form checkbox, and that value enables and disables a certain functionality in my site. I submitted the change, and I'm an admin, no one else has access to this form. However my answer to the checkbox true or false needs to effect all future sessions based on how I last set it. Let me make a more concise example.... From an administrative dashboard, i want to enable and disable pages, (put them into maintenance mode). I don't really wanna store this value in a database, and I'm too lazy to write it to a file. So there is an if statment at the beginning of each of the pages, \[code\]if($iamdisabled){ die(sorry, you can't access this page right now");} \[/code\]can i store that variable somewhere that will be save between different people and different sessions, without a database?
 
Back
Top