My first line flight in the A320 I encountered this problem. We were just airborne and extremely hot air started pumping out of the flight deck airvents and within a minute or so the zone temp was saying 40 plus in the flight deck with the cabin also climbing. We turned off the hot air valve which seemed to stop the increase but we couldn't get the temp down. In the end we had to turn the packs off and use the ram air as both the Captain and I thought that we were going to faint, a quick return to departure was made. After much investigation the engineer couldn't fault any component of the air system and the aircraft was dispatched later in the day with no further problems. It was a very uncomfortable experience.