Dan King wrote:
> It seems that our java applet is clearing our php session variables.
> I have an html form that saves user information as session variables. These
> session variables are used to create folders, where uploaded files can be
> saved. I've tested my php script that uses the session variables to create a
> folder and then moves uploaded files to that folder with a traditional html
> upload form.
> However, when I use a java applet in place of the traditional html form the
> php script does not create the folder, and thus it obviously cannot move the
> uploaded files.
> I've tested the applet and it does successfully upload files to the server.
> When I printed the session array variable after using the applet, I noticed
> the session array was empty. Does anyone know why this the applet clears the
> session variables? Or how to stop/work around it so I can use the applet and
> the php script?
The most likely thing is that the java applet isn't using the same session as
the HTML. I suspect that the applet does not have access to, or does not attempt
to access, the cookie that carries the session ID.
You may have to prime the applet with the session ID somehow before it runs so
that it can generate a PHP_SESSIONID (or whatever it is) cookie to send back to
Peter Ford phone: 01580 893333
Developer fax: 01580 893399
Justcroft International Ltd., Staplehurst, Kent
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php