so when you get there you go through their immigration and process their visa upon arrival and exit the airport.
Then can you reenter the airport and process to board a flight back to Bangkok, when you arrive in Bangkok go through immigration and receive your 90 day entry???
Or must we spend the night in Laos and return the next day?