jquery – How to keep a PHP session during a long download

Hi, I have a basic authentication system using a session for a file download system
However, when a user with slow internet access puts many files in the queue to download (10 files or more), downloading a file takes 1 hour. It is disconnected after an hour or more.

I've already tried to solve this problem using the rules

And also the function session_set_cookie_params.

However, even using them, the user remains disconnected after an hour or more and can never finish the rest of his downloads.
(Since the session is destroyed by inactivity on the page, however, it continues to download the file.)