PHP Session Vars & Flash Movie



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I have a small application made in flash, that uses a set of PHP scripts
to pull data from a database. I've added sessions to this scripts so
they would only return the data if a proper session has been
initialized, the flash movie is hosted in a sessioned php as well so you
can only see it if a session has been initialized.

All of it works well, the flash movie calls the scripts and the scripts
return the data if and only if a session has been started. all of this
was tested on Apache 2.2.2 and PHP 5.1.6 and works as expected. however,
moving the whole thing to another server running Apache 2.2.6 with PHP
5.2.4 does not work, the flash movie calls the scripts, but it seems to
be calling them outside the session set in PHP, thus the scripts return
and invalid session message, if we call the scripts directly once the
session has been initialized they return the correct data.

So, the question is, is the above working because we are relaying on
some bug in the previous versions of apache+php or are we missing some
setting in the new versions ? We have tried to find a relevant setting
making a difference but so far we are not able to do so.

Thank you very much for your help.

Regards.

- --
Luis Magaña
Gnovus Networks & Software
www.gnovus.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFHZzXtqSchlMT6gK4RAjHRAJ4pU81dw8BpZBf7bhF5QS7mxRqMcQCaAtIu
eTMSRMXsmddN0jvqEWUOlrw=
=fSiN
-----END PGP SIGNATURE-----
.



Relevant Pages

  • Re: how to get object in pages !!!
    ... > functions of java from my php page. ... same operation with $_SESSION also is not ... Try these two scripts to see if sessions are working: ...
    (comp.lang.php)
  • Re: [PHP] two php scripts with same $_SESSION variables
    ... folders A and B. When they are run from two different browsers, I am getting the behavior I 'd like to see with two session ids being created and therefore no sharing of $_SESSION variables. ... But when the two apps are opened inside the same browser, the $_SESSION variables are shared and that makes sense because session_idreturns the same value. ... It would be be nice that when the app in A is running and the user starts the app in B, in the same browser widow, the server and php are instructed to realize that this is a brand new session and assign a new session_idwhich would solve my problem. ... How can I make sure that the $_SESSIONis not shared between the two scripts? ...
    (php.general)
  • Re: Flash & PHP Session
    ... I have an upload application written in PHP and Flash. ... the php page cannot access the $_SESSION. ... you append this to every GET request to php. ...
    (comp.lang.php)
  • Re: Flash & PHP Session
    ... I have an upload application written in PHP and Flash. ... the php page cannot access the $_SESSION. ... append this to every GET request to php. ...
    (comp.lang.php)
  • Re: Problem with SESSIONS on Mac with Flash
    ... back to the php program on the server. ... is that Flash on a Mac does not send the cookie information along, ... no session is attached to that request from the flash file. ...
    (comp.lang.php)