Rlabkey package (potentially unorthodox) usage

LabKey Support Forum (Inactive)
Rlabkey package (potentially unorthodox) usage Leo Dashevskiy  2013-03-30 11:56
Status: Closed
 
Along the same lines...

JS code kicks off an R script, which does a long-long computation, over 40 minutes. After the computation is finished, its results need to be written to a Labkey db table. But from what I understand, by that time, if the user has not browsed around on the server, then the Labkey session times out. And so the session information that the R script received from the front-end to be used by Rlabkey calls is no longer valid and the R script is not able to make any of these calls. How can one circumvent such an obstacle?
I immediately see 2 approaches:
one way would be to try and pass the user log in credentials, but I am not sure, where JS side would get them from... other - to somewhere set the server time-out to a larger value, how/where can one do that?

Your thoughts and comments are appreciated.

Thanks.
-Leo