Sleep medications are not a good idea. Most of them are habit-forming and can cause real substance abuse problems later in life. Also, users will build up a tolerance to both those and the sleep aids that are not habit-forming, making them an ineffective long-term solution. My solution, Z, for what it is worth--because I too have sleep-onset insomnia--is to go to bed when I'm tired enough to know that I'll fall asleep quickly. When I'm operating on a rigid schedule, that means having many tired days, but this can be mitigated somewhat by going to sleep early on nights following tired days, and sleeping a little longer than usual on the weekends or off-days.
Some alternatives include doing heavy exercise in the course of the day, taking more steps to set apart your bed(room?) as a place purely for sleeping, partaking of sedative rather than stimulative activities when you realize you're ready to go to bed, and seeing your doctor for sound medical advice.
Edit: And to you, Sajainta, get well soon! Feel better.