Moved async tasks to last operation.
Manual setting of session cookie for each request