In Caenorhabditis elegans, a subset of gustatory neurons, as well as olfactory neurons, shortens lifespan, whereas a different subset of gustatory neurons lengthens it. Recently, the lifespan-shortening effect of olfactory neurons has been reported to be conserved in Drosophila. Here we show that the Drosophila gustatory system also affects lifespan in a bidirectional manner. We find that taste inputs shorten lifespan through inhibition of the insulin pathway effector dFOXO, whereas other taste inputs lengthen lifespan in parallel to this pathway. We also note that the gustatory influence on lifespan does not necessarily depend on food intake levels. Finally, we identify the nature of some of the taste inputs that could shorten versus lengthen lifespan. Together our data suggest that different gustatory cues can modulate the activities of distinct signaling pathways, including different insulin-like peptides, to promote physiological changes that ultimately affect lifespan.