Last airport I used allowed a ziplock bag sized plastic container for toiletries, liquids, etc. I stashed it in my backpack and carried it on to the plane without an issue. I think airports have different guidelines about liquids. Most are more strict about what's in your carry-on than in your check-in bag.
Now, coming back, I goofed and threw everything into my backpack, so the bag checker pulled it all out and asked what I would like to keep (she offered me a plastic bag), embaressing the sh*t out of me since it included a can of Rogaine foam and a can of Toppik. And it didn't help that I reached to put it in the bag quickly and she got all defensive about me touching the stuff. That was an awful 45 seconds.