I have many 6 1/2 days because they do updates. My longest was when they skipped an update last or this month then it was 2 weeks straight (minus 20 minutes a day for reloading the client).
Wow everyone's longest is so much higher than mine!
My best is 6 hours with RiD because i use the rs client so can't refresh.
But i hit 16 hours with a old red chin bot when getting 99 hunter on a skiller.