@Diamondracer: How do you envision this. Do you want to disconnect after a specified time after logon? Or after a specified time after your last DB action? Or after a specified time after you last action anywhere in Windows (like the screensaver) or...