Hey Guys, here is the problem: I have a website that used to have basic authentification and I changed it to session auth. Everything is working fine execpt for one thing, videos. I have many videos (movies) on the site that needs to be protected with session, and I don't know how to do so.
Right now, what I am trying to put a file as prepend in the video folder that verifies the session, just like the site, but a prepend file won't be executed on .wmv or .mpeg file, so I need to change with mode rewrite the file .wmv and mpeg to .php. Now, my prepend file gets executed before the videos play, but when the video play, I get parse errors... I now added the following headers in the prepend file:
header("Content-Type: application/octet-stream");
header("Content-Transfer-Encoding: binary");
but still no luck, any ideas ? If some stuff is unclear, please let me know. Thanks