The possibilities for a cough
lasting 3 weeks or longer include bronchospasm
of any etiology, gerd, post-nasal drip or any combination of these factors.
The treatment of each of these is different so see you doctor so the diagnosis in your case can be made and the proper treatment rendered. Good luck!