There is a security policy setting but it is only for network connections
and not to log the user off of their local computer. A third party screen
saver application may be able to do what you want or you could create a
Scheduled Task on a computer to log the current user off of the computer at
a scheduled time. The free psshutdown utility from SysInternals/Microsoft
could be used in the batch file to do such.