Configure keepalives to prevent putty automatically disconnecting

I often need to open multiple putty sessions. When I need to use it again after a while, sometimes putty has been automatically disconnected. This has troubled me for a long time, and now...