Is this code looking good to exchange PHP session ID between Flash and PHP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hi There

Can some Flash guru tell me if this Flash code is OK to set / retrieve a  
cookie for exchange with PHP?

var ses:string;

//create the local Shared Object
myLocalSO = sharedobject.getLocal("hookie" );

if(_root.destroy) { = "destroyed";
else {
 //if cookie already exists then get ses from cookie
 if ( == 32) {
  ses =;
  getURL("index.php", "_self", "GET");
 //if cookie does not exist then make it
 else { = _root.PHPSESSID;
 ses =;
 getURL("voter.php", "_self", "POST");

Site Timeline