Blank page fix (javascript loop removed)
Session creation decomposed out of uploader.php