Changing the session time for non cloud version loging out

Hi, Does anyone know how I can change the logout time session to an 1hr?

Probably the session idle timeout? That's the setting xpack.security.session.idleTimeout: "1h"

Session management | Kibana Guide [8.17] | Elastic has more details.