Alternatively, you can use this plugin to detect online presence: Efactive! New FREE Plugin - Detect if user is online
Basically, it detects the users online presence. If the user is inactive, it returns the user’s inactive time in seconds. With that, you can set a condition that logs the user out when the plugins value is greater than 3600>