I have a php website that uses sessions and if your not logged in you cannot access a web page... I want the same for my Flash file, but want flash to see if there is a valid session on the php website and if there is play the flash, if not access denied..!
this if they download the flash file and are not logged into the PHP website they cannot play the file.
here is my PHP session I.D I want to use for validation from PHP to Flash..
$member = "{$_SESSION['SESS_MEMBER_ID']}";
here is my PHP authentication that runs on every page
//Start session
session_start();
//Check whether the session variable SESS_MEMBER_ID is present or not
if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) == '')) {
header("location: access-denied.php");
exit();
}