$_SESSION Variable Help
Posted: Mon Mar 01, 2010 9:01 am
I have a statistics summary screen that runs lots of SQL queries and displays them but this has severely slowed the page down...
This shows stuff like Open Calls, Closed Calls etc. with the timezones of Today, This Week, This Month, Last Month, This Year and Last Year
What i want to do is create a $_SESSION variable for all the data in Last Month and Last Year as these stats will only change on a monthly or yearly basis so instead of having them load every 2 mins (page auto refreshes every 2 mins) i thought a session variable could store the figure and only change once a month/year??
Is that possible?
If so any pointers would be great!
This shows stuff like Open Calls, Closed Calls etc. with the timezones of Today, This Week, This Month, Last Month, This Year and Last Year
What i want to do is create a $_SESSION variable for all the data in Last Month and Last Year as these stats will only change on a monthly or yearly basis so instead of having them load every 2 mins (page auto refreshes every 2 mins) i thought a session variable could store the figure and only change once a month/year??
Is that possible?
If so any pointers would be great!