Re: Re: php and java applets

From: Date: Fri, 21 May 2004 13:03:10 +0000
Subject: Re: Re: php and java applets
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-186673@lists.php.net to get a copy of this message
That was my original plan. The problem is that if someone works out the commands needed to communicate with the php control page, they will be able to bypass the Java access control systems. I suppose I could use https, but does that encrypt the url and post data? Tom Aidan Lister wrote:
I'd implement access control in the java object if possible, sounds easier. "Tom Playford" <tom@playford.net> wrote in message news:20040521104937.GA25183@playford.net...
Dear all knowing list, I am trying to control the movement of a camera in real time from the web.
But I also need to make sure that only the user I specify can have control.
What I though I could do was this: launch a java applet from a php page
parsing the session id. Then when the user adjusts the controls on the applet, a php page is loaded by the applet, sets the user session with the session id, then sends the control details back to the server and on to the camera.
I've given this a go with no luck. When I try to set the session id on the
php script that the Java applet loads I get a permissions error (the perms on /tmp are fine). I'm not 100% sure I understand sessions, is my method utterly implausible? Does anyone have any better suggestions?
Thanks, Tom Playford


« previous php.general (#186673) next »