Logout Users After 2 hours

Hi ojs Team
I want to know that how could i check a user after 2 hours idle and logout automatically?
As you know it is a very popular security decision because maybe user after 2 hours not working with system should drop his session.

Thanks in advanced