You don't have to recreate the GUID every time ! Doing that would obviously result in new GUID. What I am saying is that you should first check the database for the GUID against a user. If it exists, no need to create it again, and if it doesn't create one and store in database. Get it ?