When I traveled in India on a domestic flight recently, the system went this way: When you place a laptop (or jacket etc) in a plastic tray, there are two large cards with matching numbers on them. You take one, the other stays on the tray. When you have passed through, you give your card to the guard there, he gives you the matching tray.