SACRAMENTO — Legislation that would have restricted how online retailers can use customers’ personal information died in the state Senate on Thursday amid heavy opposition from business interests and tech groups.

The bill, SB 383 by Senator Hannah-Beth Jackson, D-Santa Barbara, was an attempt to thwart the state Supreme Court’s February ruling in Apple v. Superior Court (Krescent). In a 4-3 decision, the high court held that the state’s retail privacy law does not cover e-commerce. The majority opinion allowed Apple Inc., Ticketmaster and other e-tailers to continue collecting information about their credit card customers — even if an address isn’t needed to complete a transaction.