Page 1 of 1

Securely passing variables

Posted: Fri Aug 13, 2004 11:51 am
by mhughes
I need to pass some info from a Flash program to a PHP script and then to a database. How do i ensure that (for example) a user can't simply write "Program.php?score=1000" at the end of the path in the browser to cheat instead of going through the flash program?

Posted: Fri Aug 13, 2004 11:53 am
by feyd
add a hash to it, where you combine a secret code with the data you're sending... use post to send it, if you can, with the url being you're url parameterized stuff..

Posted: Fri Aug 13, 2004 12:18 pm
by mhughes
... and if someone were to maliciously crack my flash program and discover the secret code? Is there a way to prevent this?

Posted: Fri Aug 13, 2004 12:31 pm
by feyd
not really that I know of.