andrew_biggart Posted May 18, 2009 Share Posted May 18, 2009 Ok what i am trying to do is test for a registered session in flash (myusername) and if it is not set then goto and play frame 1! but if it is registered goto and play frame 80. Can anyone point me in the right direction? Thanks Link to comment https://forums.phpfreaks.com/topic/158644-sessions-using-php-and-flash/ Share on other sites More sharing options...
tibberous Posted May 18, 2009 Share Posted May 18, 2009 The way I do it is by passing it into flash as a parameter: movie.swf?registered=<?php echo intval($registered); ?> If you want it to be more secure, you can pass in an identifier, then have the flash file pass that identifier to a php file that validates the response. So it would be: movie.swf?sess=<?php echo "h6565j67jg45tg45h6h67i7h45"; ?> And then in the flash you use LoadInfo to get the sess parameter, and the loan in something like validate.php?sess=h6565j67jg45tg45h6h67i7h45 as xml. Link to comment https://forums.phpfreaks.com/topic/158644-sessions-using-php-and-flash/#findComment-836687 Share on other sites More sharing options...
andrew_biggart Posted May 18, 2009 Author Share Posted May 18, 2009 Is this the easiest way to do it? can flsh not check if a session is registered by itself? Link to comment https://forums.phpfreaks.com/topic/158644-sessions-using-php-and-flash/#findComment-836711 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.