You should not drink and bike. However, there are ways to keep the liquid from exiting a can when you are riding. I recently made myself a can holder out of a 15 oz. tin can and one of those Bontrager handlebar cage mount clamps. Then I attached one of these onto my drink can:
http://www.amazon.com/Snap-Capp-Re-closable-Assorted-Colors/dp/B002L16F78
Didn't spill a drop.