crobinson42
09-19-2011, 08:28 PM
Does anyone have advice on building an efficient & low-server-load login when having 25 or so different boolean settings to be loaded for each page?
expecting 200 users logged in at a time switching pages, every page has to check true/false depending on their personal settings they assign.
eg:
if(isset($setting1)){ makeBox(); }
if(isset($setting2)){ makeBox(); }
if(isset($setting3)){ makeBox(); }
if(isset($setting4)){ makeBox(); }
if(isset($setting5)){ makeBox(); }
if(isset($setting6)){ makeBox(); }
My goal is to structure it as efficiently as possible for responsiveness. My first instinct of course it to input all the settings into an array and store in a session... But is there a better option than that?
Thanks in advance for the advice and assistance,
-Cory
expecting 200 users logged in at a time switching pages, every page has to check true/false depending on their personal settings they assign.
eg:
if(isset($setting1)){ makeBox(); }
if(isset($setting2)){ makeBox(); }
if(isset($setting3)){ makeBox(); }
if(isset($setting4)){ makeBox(); }
if(isset($setting5)){ makeBox(); }
if(isset($setting6)){ makeBox(); }
My goal is to structure it as efficiently as possible for responsiveness. My first instinct of course it to input all the settings into an array and store in a session... But is there a better option than that?
Thanks in advance for the advice and assistance,
-Cory