This question already has an answer here:
I want to go to Tehran from New York. I have separate ticket. New York to Dubai and Dubai to Tehran. Both from Emirates with 23 hours distance. I have an Iranian passport I don't have any luggage. Should I take Visa? I have only two days remaining and impossible to take visa. I don't want to leave the airport I just want to be at airside to do my next flight Can I follow Check in process on airside?
Both my flight are in the same terminal - terminal 3.