In Milan, like in many other cities, public transport tickets have a magnetic strip on the side that is used to check their validity by means of electronic readers.
Even now, some years after the introduction of the new tickets, a lot of people still insert their tickets in the readers in the wrong direction, and can’t pass the turnstiles until they get it right.