Thanks for you answer!! I've already set "Content-Disposition: attachment; filename=\"$filename \"", and also an option for the IE problem with multiple dots.
My first cake so at this stage I'm not using the Security component. CAKE_SECURITY set to 'high', also tested with 'medium' without success. I'm not sure of fully understanding your suggestion about Security and Session handling. The session don't die as long as the download time is smaller than the session lifetime .... it simply freezes. After the download starts the user can request anything he wants. But the browser will not receive any data until the donwload is finished. Click for download, download starts, click on _put_any_number_here_ links from the page and finally when download finishes the last action requested is processed. If you are downloading small files or working from intranet the user perhaps doesn't notice the behaviour, but downloading a 50MB file from the internet at 15KB/s you can imagine the result. For testing I download smaller than 1MB files at 10KB/s so the file size is not causing the problem. Only the current session gets frozen. I've run tests with 3 or more concurrent sessions (downloading diferent files with diferent file sizes as 700kb or 170MB) and all of them freeze when the download starts and get back to life when it finishes. I assume that when my controller action calls the model download method it doesn't give up until the method "return's". And the method does not "return" until the chunked "fread" ends due to "feof" condition. So what I need is something like "fire and forget" the method from the action, so the user can go on with other actions. Thanks again, Juan On 23 ago, 17:23, nate <[EMAIL PROTECTED]> wrote: > Set the content-disposition header so the download gets forked out to > a separate request, and use Ajax on the main application page to keep > the session alive. Are you using the Security component? What are > your session security settings? > > On Aug 23, 10:36 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Hello, > > > In my project the users will usually download files with sizes up to > > 150MB at limited speeds depending on the remote location (intranet/ > > internet), so the download process can take hours. I've created a > > download function in a model which is requested by a function in a > > controller. > > > The problem is that once the download begins, the application gets > > frozen and the user can't do any other action within this session > > until the download is finished. The desired behaviour would be that, > > while enough bandwith is available, the user can download several > > files simultaneously. > > > I've searched the group and done some google work without success. > > Perhaps the solution is not so complicated but I don't know how to fix > > this behaviour. > > > Any idea on how to solve this problem? Can you point me to a resource > > related to this issue? > > > Thanks, > > Juan > > > CakePHP/1.1.16 on Apache/2.0.52 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
