I've got a site being built on Django to replace a previous custom site built using straight PHP.
The site is built so that a business owner can sign up for a master account and create user accounts for all his employees. The master account can then display a list of all their users and click on a certain button for each of their users and login as that user - no need to enter username or password.
We set a few cookies that declare the current user is now the employee as well as another cookie that tells the system this is still a master account so there's a new button at the top that lets the user click it to go back to their previous master account session.
I'm struggling how to accomplish this in Django. Everything is so modular, I'm not sure how to start a session for a new account without requiring the user to enter username and password again.