store group ID in cookie instead of group itself