Champions Online and Star Trek Online do this. If you're inactive for a certain amount of time the game will let you know that you're now idle. If you sit for too long without doing anything, then a message in red text will let you know that if you're inactive for any longer that you'll be logged out of the server. I just now remember Star Wars The Old Republic doing this as well.