I use session_start() in my PHP files and it works fine (Although I
use Remoting).

Perhaps there is something else causing the problem that is masked by
the removal of the session_start() ?

To do what you want, could you perhaps use the referrer header? If the
referrer is not your SWF then don't send the file.


HTH


Steve

--- In [email protected], "Ramsey, Robert L"
<robert-ram...@...> wrote:
>
> Hi,
> 
> I have an app that makes  http requests to a php script on the
server.  If I have session_start() in the back end file so I can use
session variables in php, I get the following error:
> 
> [RPC Fault faultString="HTTP request error"
faultCode="Server.Error.Request"
> 
> faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false
cancelable=false eventPhase=2 text="Error #2032"].
> 
> URL: https://path.to/my/file.php";]
> 
> But only when I use Internet Explorer.  If I use Firefox, it all
works beautifully.
> 
> If I rem out the session_start() line in the php script it works
fine, so I can confirm that that is the line that is causing the
error.  Has anyone seen this?
> 
> Here's my goal.  I have an app that plays videos and users aren't
supposed to be able to download the video easily.  The very popular
firefox plugin Video DownloadHelper can see the mp4 files (but not the
flv files for some reason) and download them.  I use a php file to
read the contents of the videos from a non-web accessible folder.  I
want to use mp4.  What I did was to set a php session variable when
the user selects the file from the combobox, then immediately fetch
the video.  Right before it sends the video the php file unsets the
session variable.  This means that the user has to use my combobox to
see the file, because it is the only thing that can set the session
variable and the variable is destroyed as the file is sent.
> 
> This is only meant to stop casual copying.  Our faculty is aware
that there's always a way to capture the video.
> 
> Any ideas?
> 
> Thanks,
> 
> Bob
>


Reply via email to