They may last several months, some people claim having withdrawal symptoms also years afterwards. But the symptoms gett less prominen with time, and most people quitting say afterwards "It was worth it, my life is better now without Xanax".
Read more about Xanax withdrawal.