News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

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
  •