Get data from non-drupal session
tantalic - July 17, 2007 - 22:38
I'm trying to create a module that requires access to data stored in PHP Sessions from other PHP web-apps running from the same server (they use the default php session handlers). Unfortunately the way drupal works clears out the $_SESSION variable during the bootstrap phase and I can't seem to find a hook to get the data before it is overwritten.
Does anyone know how I can access the $_SESSION variable before it is reset by drupal?

I've had no trouble with
I've had no trouble with putting info into $_SESSION variables. Except that it you have to manage it independently of drupal's own session management, that is (the data survives a logout, unless you watch for it using hook_user).
Steve
----
Steve McCullough, PhD
:: Chief Technical Officer
:: OpenConcept Consulting
:: http://openconcept.ca
Have you done the opposite?
My understanding is that the above is trying to pull data into Drupal.
I am trying to push data out to an external script, which is requested by a Flash SWF (compound interest chart) to fetch the chart's data. Rather than trying to encode all of the chart data into a monster URL querystring, I'd much prefer to use the PHP session to set the variables from the (Drupal-hosted) form, and then read them in the external PHP (whose sole purpose is to feed the SWF- it doesn't even produce HTML output. It looks more like URL-encoded data.)
I have confirmed that the session is working great inside Drupal pages; I have implemented a simple session-based page view count to confirm this. All session variables set within a Drupal-hosted page (using the PHP content type) remain unset/empty in the external PHP script. I found that the session_id() is different inside and outside of Drupal.
If you could provide any pointers, I'd be very appreciative!
Many thanks,
Jim Bernatowicz
Update: Solution found! (for the Push scenario)
FYI,
I got mine working, and posted my solution here.
Jim Bernatowicz