What does one of the queries using the session variable look like compared to the query that does not use the session variable? If we can compare the queries the problem with using the session variable might be more obvious.
Also, what is the result that you get when you try to view this graph that uses the session variable? Do you see an empty chart, or does the page load with no chart at all?


