I have a script that takes a users login, verfies, performs some tasks (like cleanup..etc) and then redirects the user to an inner page. Basically, the script checks the login information and if it is correct it prints out
The script then performs a couple of other misc. tasks like directory cleanup.
However, the cleanup tasks take about 10 seconds to complete and the user is not redirected to the page until the script has finished executing even though I put the Meta refresh line directly after login verification (before cleanup starts). I don't want the user to have to wait for the directory cleanup to be complete before being redirected. Is there anyway to redirect the user and have the script finish running in the background?