UPDATE: They have now closed this office. You need to get the re-entry permit from the hall where you queue up to have your passport stamped. As this is after security check, you won’t be able to get the permit if you are not flying the same day. Cost of re-entry is 1,200 Baht for single. No need to bring photo. It is open 24 hours.