As I understand you accomplish this task at login ?

Hmmm ... you should either consider using a database or go this way
_________________________