I have some sub process that may get started while a user is logged in. When the user logs out, I would like to go through all pids associated with the user and kill them.
I am currently using django registration to handle logins.
What should I extend to hold the pids (max of four) to a authenticated users session?
I’d set up a model to handle these processes and then have a M2M field in the user profile.
When the user logins in create the model. On logout kill the processes.
Edit: Here’s possible source.