Dear Sreenath,
The question what you are asking is completely different, Because in the real time environment it is very complex task to server to monitor all clients which are connected to the server, it leads server slow. So normally at client side only the process of idle time count happening , based on it security will be implemented at client side only.
Any way as per your requirement, look it
Monitoring client connections.
Disconnect clients that are idle or that have a network address in a specified range
http://msdn.microsoft.com/en-us/library/windows/desktop/dd892435(v=vs.85).aspx[
^]
Thanks & Regards,
SP