the download script checks if the user is logged in before executing the download.
I don't know the best way of explaining the procdure, so ill keep it short simple.
the download scipt, dl.php is execited like this : site.com/dl.php?file.zip
once the user clicks the link, the dl.php script checks to see if the users is logged in, if so, then the download is executed. if not, then we get error messages.
the problem is, as there is a session_start() in the dl.php file, the user cannot browse until the download is complete.
I foudn a very crap solution by using session_destroy() right before the download is executed,just after the login checks, thus erasing the session data and logging the user out completley, and is able to browse as an anonymous user.
I'll try naming sessions and see how it goes
Still open to more help !
Thanks!