Actually, absolutely no one is allowed to give control to a passenger. The student/instructor case is a completely different situation as a student is not just a passenger (for starters, he/she needs to have the right type of medical just to commence training).
Ciao,
Dg800
Completely incorrect. A student pilot needs a medical before flying solo. Otherwise, anyone having a trial lesson as a birthday gift would need to have a valid medical.