You can force user to be logged out after 2 hours by setting TMOUT in /etc/profile
TMOUT=432000
readonly TMOUT
export TMOUT
But it may affect the orphan background process, which has been started by this user.
this will work if user shell is ksh or posix shell
regards
Prasanth
prasanth.v.a