Move session variable outside the while loop