Can I use the configuration below (env.properties) to decide user inactivity timeout period?

Maximum age of the session cookie before it is cleared by the browser. A value of -1 means that it will not expire.
Note: This setting is different from the session expiration period which is configured via the System Settings page and invalidates inactive sessions in the backend.