Hi,

I am using CakePHP with PHP5 and Apache on Fedora Core 5 and the third
party graphing tool, ChartDirector for PHP
(http://www.advsofteng.com/product.html).  ChartDirector accepts data
in the form of $_GET or $_SESSION variables, does some manipulations in
PHP, then outputs a graphic using code something like this:

<code>
header("Content-type: image/png");
print($c->makeChart2(PNG));
</code>

My problem is that I cannot access $_SESSION from within my chart file.
 $_GET variables are readily accessible, but isset($_SESSION) from
within the chart file always returns false.

To test, I added another, non-chart file with only the line
print_r($_SESSION) (to the same directory as my chart file,
webroot/img), included it it my code ( include("img/test.php"); ) and
it outputs the session array as expected.  One line below, I include my
chart code (<img src="/img/chart.php" /> ) and no $_SESSION is detected
(otherwise, the image is generated as expected).  I'm totally stumped.
I'm not sure if this has to do with cake, my php setup, or
chartdirector.

In a non-Cake environment running PHP 4.3.11, $_SESSION variables are
readily accessible from within chart director files.

Thanks!
- Jack


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to