Logoff user after 30 minutes of inactivity

I checked the configuration file and couldn’t find the user session duration config. It’s possible to change this config ? We need a way to logoff the user after 30 minutes of inactivity