Elasticsearch session management

Hi Team,

I have Elasticsearch cluster with two nodes one as master one as data node. I am using this as database cluster and integrating to application. in this case i want to manage the session idle and active timeout. How can I achieve this? need recommendations.

that cluster deployed as Docker containers.