Save user id and global user properties to cookie