If it's a domestic round trip, you don't need to leave the secure area, provided both flights arrive/depart from the same terminal and you have already checked in for both flights (most conveniently done online). You just need to get off, walk over to your next gate and hop on again.
If the connecting flight is to go back to philly from orlando, do we
have to exit again since its only a 30 mins gap or we cld just wait
for the plane in the waiting area.
You are not going to wait, you will probably run like heck. 30 minutes is awfully tight. You still need to get out of the plane, and walk to your next gate which may be far away. Most carriers close the gate 15 minutes before departure, if you arrive at your gate later than this, you won't be able to get on. Even if everything is on time, this will be difficult and if your incoming flight is only a little delayed, you will miss your return.
Keep in mind this is NOT a connection, it's a round trip. If you miss your return flight, the airline is in no way required to rebook or refund you.