News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Connection blocked when downloading

Started by FlyingDutchman, 23.11.2014 19:32:39

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

FlyingDutchman

Hello everyone,

firstofall, thanks for this great component.
I had an issue on my site, where it was impossible to browse the site when there is a download running,

I solved it with "session_write_close()" before the while loop in the download function.

Greetz,
Dutch
  •  

ColinM

Hi
Thanks for the useful comment.  As my php is 'simple' compared to Arno I looked it up.  There seems to be some thinking along the lines of doing something like the following
/*CLOSE THE SESSION WITH USER DATA*/
session_write_close();

code to do the downloading

/*START ANOTHER NEW SESSION*/
session_start();
session_regenerate_id(); //Regenerating SID


Would appreciate your comments
Colin
Colin M
  •  

FlyingDutchman

sry, my php-knowledge is very limited... learning by doing ;)
I googled that solution and just wanted to share it for users with the same problem.

Regeneration the sessions sounds a good thing to do, as stated here:
https://stackoverflow.com/questions/22965067/when-and-why-i-should-use-session-regenerate-id
  •