Variety of Concentration and ingredients are important factors.
The higher concentrated the scent, the longer it lasts, but there are some exception. I have Santa Maria Novella's Acqua di Cuba which is an Eau de Cologne, but it last longer that most Eau de Toilett I have.
Furthermore, Synthetic ingredients last longer than natural one. Some ingredients born with ability to last forever like Oud, while some might disappear with just a blink of an eyes like the citrus.