$_SESSION Variable Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Jay87
Forum Commoner
Posts: 61
Joined: Thu Jan 07, 2010 5:22 am

$_SESSION Variable Help

Post by Jay87 »

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!
Jay87
Forum Commoner
Posts: 61
Joined: Thu Jan 07, 2010 5:22 am

Re: $_SESSION Variable Help

Post by Jay87 »

Anyone?
Post Reply