jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: FlyingDutchman on 23.11.2014 19:32:39

Title: Connection blocked when downloading
Post by: FlyingDutchman on 23.11.2014 19:32:39
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
Title: Re: Connection blocked when downloading
Post by: ColinM on 24.11.2014 17:07:31
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
Title: Re: Connection blocked when downloading
Post by: FlyingDutchman on 25.11.2014 21:32:06
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