You can get cockpit visits if you ask the crew. I tried NW, AA, Hawaiian, DL; and haven't been refused yet. I usually do it when I leave the aircraft, instead of boarding to increase my chance. Also, I try to do it at terminal airports instead of at hub. This is because at hubs many times the pilots have to catch their next plane elsewhere and are less receptive to visits.