Check-in and check-out with ticket or QR code