Unable to Browse Parent Window with Secure Downloads Functionality

Discussion in 'PHP' started by LOLDavid, Feb 13, 2007.

  1. #1
    We do audio downloads through our site securely. We are using :

    session_cache_limiter('private, must-revalidate');
    Session_start();
    header("Content-Disposition: attachment; filename=\"$f_name\"");
    header("Pragma: public");
    //Set the content type
    header('Content-type: '.$filetype);
    header("Content-type: application/x-download");
    header("Accept-Ranges: bytes");
    header("Content-Length: $download_size");
    //Read the file into the browser.
    readfile( $path . $file );

    The issue is that using this code does not allow users to browse links in the parent window till the download is complete. The client we are working for is requiring this functionality. Please help us resolve this as soon as possible.
     
    LOLDavid, Feb 13, 2007 IP