I tend to keep my Firefox running for days without restarting, collecting numerous tabs...
Then I found this short post describing the setup - quite simple:
about:configin the address line and change two settings:
With Firefox 3.6.3 I only needed to toggle the first of these,
the second changed automatically...