Variables stored in the session are preserved between requests by serialisation.
The 2011/62/UE directive made the serialisation of medicines obligatory with a code printed on each product.