As adewri wrote, you need to create profile and assign it to the user.

CREATE PROFILE IDLETEST LIMIT IDLE_TIME n; where n is time specified in minutes.

IDLE_TIME: Specify the permitted periods of continuous inactive time during a session.