Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
There is no need to store any identifying information. The student asks for the password for their username. I realise this isn't secure, but since users have to request their passwords from the Prof anyway, no need to store any personally identifiable information on the server.