I need a simple security script included in Flash -file.
The page has a Flash-based file viewing system, e.g for PDF-magazines. The purpose of this script is to prevent customers from linking the files they've bought to outsiders by creating a uniques address in the navigation-bar for each reading time.
In PHP what I want goes like this, but I don't know how this goes in Flash.
$logged = file("[url removed, login to view]"); if ($logged=='TRUE') goto frame2; // show the magazine
else goto frame1; // do not show the magazine
The Flash should locate [url removed, login to view] and give it a session_id, that can go by for example locating [url removed, login to view] and the session_id comes after the question mark. In the Flash-call PHP originally gives Flash the session_id.
Then [url removed, login to view] prints true or false according to if the reader is in the same ip-address than that sessions' owner if it hasn't been linked somewhere else and isn't show.
It could be that Flash could work according to php's sessions some other way, but I have no experience on that and the first way is atleast certain.
Hope you get the idea. ;)