Billy T
01-25-2005, 10:21 AM
Hey all
thought this was straight forward but maybe not
at the top of the page that embeds my flash movie I have
<?php
session_start();
header("Cache-control: private"); //IE 6 Fix
if(!isset($_SESSION['loggedIn'])){
$_SESSION['loggedIn']='no';
}
?>
I was then then hoping to manipulate the value of that session variable via flash using the LoadVars object
ie
//bunch of other stuff
if($username!=-1){
//set var
$_SESSION['loggedIn']='yes';
//send result back to flash
echo "&result=success&username=$username";
}else{
echo "&result=error&errorMessage=Could not retrieve your username";
}
doesnt seem to be working though - am I missing something?
Thanks
thought this was straight forward but maybe not
at the top of the page that embeds my flash movie I have
<?php
session_start();
header("Cache-control: private"); //IE 6 Fix
if(!isset($_SESSION['loggedIn'])){
$_SESSION['loggedIn']='no';
}
?>
I was then then hoping to manipulate the value of that session variable via flash using the LoadVars object
ie
//bunch of other stuff
if($username!=-1){
//set var
$_SESSION['loggedIn']='yes';
//send result back to flash
echo "&result=success&username=$username";
}else{
echo "&result=error&errorMessage=Could not retrieve your username";
}
doesnt seem to be working though - am I missing something?
Thanks