Linux users has autossh program that does the ssh connection monitoring. It starts a copy of ssh and monitor it, restarting it as necessary should it die or stop passing traffic. The idea was originally from rstunnel (Reliable SSH Tunnel).
Windows users can use a third party PuTTY application called MyEnTunnel (My Encrypted Tunnel) to prevent SSH session disconnects.
MyEnTunnel is a tiny system tray application that launches Plink (PuTTY Link) in the background and monitors the process. If the Plink process stops, it will automatically reconnect the tunnels.
MyEnTunnel uses Plink encryption and networking. It also can use PuTTY sessions, private key generated by PuTTYgen.