None of the 9/11 attackers succeeded in their hijack because they "visited" the flightdeck. They just walked up to the flightdeck, opened the door. And killed the pilots. No invitation required.
It's my understanding that the hijackers gained access to the flight deck in part because they first murdered the cabin crew working in First Class.