Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

A new federal rule forbids airline passengers from packing electronic cigarettes or other battery-operated electronic smoking devices in their checked bags to protect against in-flight fires.

The rule still allows e-cigarettes in carry-on bags, but passengers cannot recharge the devices while on the plane.

Realted: High Levels of Formaldehyde Hidden in E-Cigarettes

The Transportation Department said there have been at least 26 incidents since 2009 in which e-cigarettes have caused explosions or fires, including several in which the devices were packed in luggage. Usually, they have been accidentally left on or the battery has short-circuited.

At Los Angeles International Airport in January, a checked bag that arrived late and missed its connecting flight caught fire in the luggage area because of an overheated e-cigarette packed inside.

The rule goes into effect within the next two weeks.