As a kid/teenager last century, I was frequently let into the cockpit of airliners in flight, and sometimes even invited to sit in the jump seat and fly along for a while - at least once even for the landing. Glorious. Innocent days.
Since I saw this episode of "Air crash"[1] about Aeroflot Flight 593 when a kid invited in the cockpit crashed an Aeroflot Airbus I'm pretty happy that kids aren't any longer invite to the cockpit.
https://www.youtube.com/watch?v=y1kPAWVI5UA
Can't imagine this happening in this century, given 9/11. Mind you, regardless of airplane security being more or less secure nowadays, and regardless of the chance of such a near accident/rescue happening plus the chance of having a terrorist on-board; rather because of the strict rules and the fear associated post 9/11.