Add userid to cookie for extension