This happened on the train when I was a kid.
I went to the lounge car and bought a coke. A mother kid in front of me bought a coke too. We both headed back to the dome car. He shook his can the entire way (about 4 cars). I sat down and opened my coke with no problem. The other kid opened his. The coke shot up out of the can, hot the dome glass, and sprayed several passengers.