SACRAMENTO (CBS / AP) — Smokers have to be 21 and older to buy tobacco products in California under a new law that takes effect Thursday.

Gov. Jerry Brown last month signed a series of tobacco-related legislation that increases the state’s minimum age to buy tobacco from 18 to 21, regulates electronic cigarettes and restricts tobacco use in other ways.

READ MORE: 49ers Fans Look to Make Noise, Boost Team at NFC Championship Game

Military personnel with an identification card can still buy cigarettes if they’re 18.

READ MORE: Solo Crash Friday Night Closes Moraga Road, Cuts Power to Hundreds

California is the second state after Hawaii to raise the legal age to 21. Tobacco companies have long opposed restrictions on sales, but kept a low-profile in the California debate.

MORE NEWS: S.F. Supervisors Set to Designate Casa Sanchez Bldg. in Mission District a Historical Landmark

© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.