use session for tracking events instead of flash