Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2008
    Posts
    214
    Thanks
    5
    Thanked 22 Times in 22 Posts

    Flash "speaking" with PHP within an .htaccess protected directory problem

    Hello!

    I have a Flash file (swf) which is basically a GUI to upload image files.

    The Flash file uses a PHP upload API (made by me) which will validate the file format, resize image and move to the correct directory on the (same) server.

    Both the swf and php are in the same directory. The parent directory is password protected with an .htaccess.

    My problem is that the swf will ask for login/password (you know the login box triggered by the .htaccess) at each execution of the swf (If I check remember password in the .htaccess triggered login box all is OK). Usually if you do not check remember password the credentials are good until you close your browser but here I don't even change the URL / move away from the page.

    How can I avoid the login/password prompt at each swf execution when I don't check remember password? Hope I'm clear enough,,, If not ask for clarifications.

    So far I've tried to add crossdomain.xml at the root of my domain without success...

    Thanks!

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    This might be a better question for server guys, as I'm not sure what Flash has to do with it exactly.

    But make sure your swf is embedded in an HTML page if its currently just being access directly. That might be a problem.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •