If I understand things correctly, the last part is actually the simplest. You just need some kind of unique code that is specific to a single user, ...
Lee mas