I'm trying to create a thread in a ASP.NET site, where the user can start the thread and it keeps working up to its end even if the user leaves the site. The code I write is:
GenerateOLAPData god = new GenerateOLAPData(_description, _fromDate, _toDate);
Thread thread = new Thread(god.OLAPGenerator);
GeraneteOLAPData connects to a database, setup the parameters and runs a long thread, populating a table with many records.
It starts to work but sometime later the thread stops. Is there a timeout for it? How can I keep it working even if the user leaves the site?