Create session if it does not exist. Workaround to show flash messages